2018-09-29 07:31:59 +08:00
|
|
|
From 97d5b2ac6eb096f2e3dd9b51337b8abc5cdfb594 Mon Sep 17 00:00:00 2001
|
2016-08-30 22:42:17 +08: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
|
2018-07-23 16:39:55 +08:00
|
|
|
index 0c8f9d37fd..44ed656263 100644
|
2016-08-30 22:42:17 +08:00
|
|
|
--- a/src/main/java/net/minecraft/server/BlockSnowBlock.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockSnowBlock.java
|
2018-07-17 04:08:09 +08:00
|
|
|
@@ -16,6 +16,8 @@ public class BlockSnowBlock extends Block {
|
2016-08-30 22:42:17 +08:00
|
|
|
return 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // Paper start - snow blocks don't need to tick
|
|
|
|
+ /*
|
2018-07-17 04:08:09 +08:00
|
|
|
public void a(IBlockData iblockdata, World world, BlockPosition blockposition, Random random) {
|
2016-11-17 10:23:38 +08:00
|
|
|
if (world.getBrightness(EnumSkyBlock.BLOCK, blockposition) > 11) {
|
2017-03-15 22:32:50 +08:00
|
|
|
// CraftBukkit start
|
2018-07-17 04:08:09 +08:00
|
|
|
@@ -28,4 +30,6 @@ public class BlockSnowBlock extends Block {
|
2016-08-30 22:42:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
+ */
|
|
|
|
+ //Paper end
|
|
|
|
}
|
|
|
|
--
|
2018-09-29 07:31:59 +08:00
|
|
|
2.19.0
|
2016-08-30 22:42:17 +08:00
|
|
|
|