Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 04:50:06 +01:00
Added World.createExplosion() that takes a Location, instead of just raw X, Y, Z values.
Dieser Commit ist enthalten in:
Ursprung
a25ab644df
Commit
ccabbcbf0a
@ -446,6 +446,10 @@ public class CraftWorld implements World {
|
|||||||
return world.a(null, x, y, z, power).wasCanceled ? false : true;
|
return world.a(null, x, y, z, power).wasCanceled ? false : true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean createExplosion(Location loc, float power) {
|
||||||
|
return world.a(null, loc.getX(), loc.getY(), loc.getZ(), power).wasCanceled ? false : true;
|
||||||
|
}
|
||||||
|
|
||||||
public Environment getEnvironment() {
|
public Environment getEnvironment() {
|
||||||
return environment;
|
return environment;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren