summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-16 20:48:00 +1000
committermd_5 <git@md-5.net>2018-08-16 20:48:00 +1000
commit06112946da2e82ed8cbdd5f210f2a3373800181e (patch)
tree32e82cf1420ca770347d2f28da5d31dcc1524209 /nms-patches
parent375bc637bdfbf17fc45a90ca404aeae817da9de4 (diff)
downloadcraftbukkit-06112946da2e82ed8cbdd5f210f2a3373800181e.tar
craftbukkit-06112946da2e82ed8cbdd5f210f2a3373800181e.tar.gz
craftbukkit-06112946da2e82ed8cbdd5f210f2a3373800181e.tar.lz
craftbukkit-06112946da2e82ed8cbdd5f210f2a3373800181e.tar.xz
craftbukkit-06112946da2e82ed8cbdd5f210f2a3373800181e.zip
Fix whitespace issue in previous commit
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/EntityTurtle.patch3
1 files changed, 1 insertions, 2 deletions
diff --git a/nms-patches/EntityTurtle.patch b/nms-patches/EntityTurtle.patch
index 14feb6f6..11c6bc4b 100644
--- a/nms-patches/EntityTurtle.patch
+++ b/nms-patches/EntityTurtle.patch
@@ -27,8 +27,7 @@
+ // CraftBukkit start
+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(this.f, this.d.up(), Blocks.TURTLE_EGG.getBlockData().set(BlockTurtleEgg.b, Integer.valueOf(this.f.random.nextInt(4) + 1))).isCancelled()) {
world.a((EntityHuman) null, blockposition, SoundEffects.ENTITY_TURTLE_LAY_EGG, SoundCategory.BLOCKS, 0.3F, 0.9F + world.random.nextFloat() * 0.2F);
-- world.setTypeAndData(this.d.up(), (IBlockData) Blocks.TURTLE_EGG.getBlockData().set(BlockTurtleEgg.b, Integer.valueOf(this.f.random.nextInt(4) + 1)), 3);
-+ world.setTypeAndData(this.d.up(), (IBlockData) Blocks.TURTLE_EGG.getBlockData().set(BlockTurtleEgg.b, Integer.valueOf(this.f.random.nextInt(4) + 1)), 3);
+ world.setTypeAndData(this.d.up(), (IBlockData) Blocks.TURTLE_EGG.getBlockData().set(BlockTurtleEgg.b, Integer.valueOf(this.f.random.nextInt(4) + 1)), 3);
+ }
+ // CraftBukkit end
this.f.s(false);