From 755861dfb6d4f7d484bfe1a82ff25aad57836564 Mon Sep 17 00:00:00 2001 From: killme Date: Tue, 30 Aug 2016 16:42:17 +0200 Subject: [PATCH] Disable ticking of snow blocks --- .../Disable-ticking-of-snow-blocks.patch | 36 +++++++++++++++++++ scripts/importmcdev.sh | 1 + 2 files changed, 37 insertions(+) create mode 100644 Spigot-Server-Patches/Disable-ticking-of-snow-blocks.patch diff --git a/Spigot-Server-Patches/Disable-ticking-of-snow-blocks.patch b/Spigot-Server-Patches/Disable-ticking-of-snow-blocks.patch new file mode 100644 index 0000000000..fc53483ba7 --- /dev/null +++ b/Spigot-Server-Patches/Disable-ticking-of-snow-blocks.patch @@ -0,0 +1,36 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: killme +Date: Tue, 30 Aug 2016 16:39:48 +0200 +Subject: [PATCH] Disable ticking of snow blocks + + +diff --git a/src/main/java/net/minecraft/server/BlockSnowBlock.java b/src/main/java/net/minecraft/server/BlockSnowBlock.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/server/BlockSnowBlock.java ++++ b/src/main/java/net/minecraft/server/BlockSnowBlock.java +@@ -0,0 +0,0 @@ public class BlockSnowBlock extends Block { + + protected BlockSnowBlock() { + super(Material.SNOW_BLOCK); +- this.a(true); ++ // this.a(true); // Paper - snow blocks don't need to tick + this.a(CreativeModeTab.b); + } + +@@ -0,0 +0,0 @@ public class BlockSnowBlock extends Block { + return 4; + } + ++ // Paper start - snow blocks don't need to tick ++ /* + public void b(World world, BlockPosition blockposition, IBlockData iblockdata, Random random) { + if (world.b(EnumSkyBlock.BLOCK, blockposition) > 11) { + this.b(world, blockposition, world.getType(blockposition), 0); +@@ -0,0 +0,0 @@ public class BlockSnowBlock extends Block { + } + + } ++ */ ++ //Paper end + } +-- \ No newline at end of file diff --git a/scripts/importmcdev.sh b/scripts/importmcdev.sh index 1f8bf85984..544d01bc26 100755 --- a/scripts/importmcdev.sh +++ b/scripts/importmcdev.sh @@ -44,6 +44,7 @@ import BlockFalling import BlockFluids import BlockFurnace import BlockIceFrost +import BlockSnowBlock import BlockPosition import BlockStateEnum import ChunkCache