geforkt von Mirrors/Paper
Small change for CraftBukkit BlockFlowing fix
By: Erik Broes <erikbroes@ripe.net>
Dieser Commit ist enthalten in:
Ursprung
56f58d646a
Commit
38896d9cfb
@ -16,7 +16,6 @@ public class BlockFromToEvent extends BlockEvent implements Cancellable {
|
|||||||
public BlockFromToEvent(final Event.Type type, final Block block, final BlockFace face) {
|
public BlockFromToEvent(final Event.Type type, final Block block, final BlockFace face) {
|
||||||
super(type, block);
|
super(type, block);
|
||||||
this.face = face;
|
this.face = face;
|
||||||
this.to = block.getRelative(face.getModX(), face.getModY(), face.getModZ());
|
|
||||||
this.cancel = false;
|
this.cancel = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,7 +34,10 @@ public class BlockFromToEvent extends BlockEvent implements Cancellable {
|
|||||||
* @return Block the faced block
|
* @return Block the faced block
|
||||||
*/
|
*/
|
||||||
public Block getToBlock() {
|
public Block getToBlock() {
|
||||||
return to;
|
if (to == null) {
|
||||||
|
to = block.getRelative(face.getModX(), face.getModY(), face.getModZ());
|
||||||
|
}
|
||||||
|
return to;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isCancelled() {
|
public boolean isCancelled() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren