SPIGOT-2387: Magma does not provide a block for EntityDamageEvent.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
1a8b83514c
commit
a9e1194e19
3 changed files with 15 additions and 5 deletions
|
@ -21,13 +21,11 @@
|
|||
world.setTypeAndData(blockposition, iblockdata1, 4);
|
||||
iblockdata1.doPhysics(world, blockposition1, this);
|
||||
} else {
|
||||
@@ -87,7 +90,9 @@
|
||||
@@ -87,6 +90,7 @@
|
||||
}
|
||||
|
||||
public void a(World world, BlockPosition blockposition, IBlockData iblockdata, Entity entity) {
|
||||
+ CraftEventFactory.blockDamage = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()); // CraftBukkit
|
||||
entity.damageEntity(DamageSource.CACTUS, 1.0F);
|
||||
+ CraftEventFactory.blockDamage = null; // CraftBukkit
|
||||
}
|
||||
|
||||
public IBlockData fromLegacyData(int i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue