onchangeblock
This commit is contained in:
parent
279aaa0b6d
commit
0f61c06f8c
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onEntitySpawn(EntitySpawnEvent event) {
|
public void onEntityChangeBlock(EntityChangeBlockEvent event) {
|
||||||
Entity entity = event.getEntity();
|
Entity entity = event.getEntity();
|
||||||
if (entity instanceof FallingBlock && entity.getWorld().getEnvironment() == World.Environment.THE_END) {
|
if (entity instanceof FallingBlock && entity.getWorld().getEnvironment() == World.Environment.THE_END) {
|
||||||
// Spawn a new falling block entity with velocity to the north and upward
|
// Spawn a new falling block entity with velocity to the north and upward
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue