testserver/Spigot-Server-Patches/0155-Disable-ticking-of-sno...

39 lines
1.2 KiB
Diff
Raw Normal View History

2017-01-06 21:45:59 +00:00
From fc6639062e9afb2c604d2d60fa7e85051b3d100e Mon Sep 17 00:00:00 2001
2016-08-30 14:42:17 +00:00
From: killme <killme-git@ibts.me>
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
2016-11-17 02:23:38 +00:00
index f69dc17..51924fe 100644
2016-08-30 14:42:17 +00:00
--- a/src/main/java/net/minecraft/server/BlockSnowBlock.java
+++ b/src/main/java/net/minecraft/server/BlockSnowBlock.java
2016-11-17 02:23:38 +00:00
@@ -6,7 +6,7 @@ public class BlockSnowBlock extends Block {
2016-08-30 14:42:17 +00:00
protected BlockSnowBlock() {
super(Material.SNOW_BLOCK);
- this.a(true);
+ // this.a(true); // Paper - snow blocks don't need to tick
this.a(CreativeModeTab.b);
}
2016-11-17 02:23:38 +00:00
@@ -18,6 +18,8 @@ public class BlockSnowBlock extends Block {
2016-08-30 14:42:17 +00:00
return 4;
}
+ // Paper start - snow blocks don't need to tick
+ /*
public void b(World world, BlockPosition blockposition, IBlockData iblockdata, Random random) {
2016-11-17 02:23:38 +00:00
if (world.getBrightness(EnumSkyBlock.BLOCK, blockposition) > 11) {
2016-08-30 14:42:17 +00:00
this.b(world, blockposition, world.getType(blockposition), 0);
2016-11-17 02:23:38 +00:00
@@ -25,4 +27,6 @@ public class BlockSnowBlock extends Block {
2016-08-30 14:42:17 +00:00
}
}
+ */
+ //Paper end
}
--
2016-12-10 23:50:31 +00:00
2.9.3
2016-08-30 14:42:17 +00:00