2018-01-11 06:31:19 +01:00
|
|
|
From adb19085efa7237cde7e6f5ddf7baee09eada051 Mon Sep 17 00:00:00 2001
|
2016-08-30 16:42:17 +02: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
|
2017-06-19 03:36:55 +02:00
|
|
|
index 8123d729..b6765e5b 100644
|
2016-08-30 16:42:17 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/BlockSnowBlock.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockSnowBlock.java
|
2016-11-17 03:23:38 +01:00
|
|
|
@@ -6,7 +6,7 @@ public class BlockSnowBlock extends Block {
|
2016-08-30 16:42:17 +02: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 03:23:38 +01:00
|
|
|
@@ -18,6 +18,8 @@ public class BlockSnowBlock extends Block {
|
2016-08-30 16:42:17 +02: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 03:23:38 +01:00
|
|
|
if (world.getBrightness(EnumSkyBlock.BLOCK, blockposition) > 11) {
|
2017-03-15 15:32:50 +01:00
|
|
|
// CraftBukkit start
|
|
|
|
@@ -30,4 +32,6 @@ public class BlockSnowBlock extends Block {
|
2016-08-30 16:42:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
+ */
|
|
|
|
+ //Paper end
|
|
|
|
}
|
|
|
|
--
|
2018-01-11 06:31:19 +01:00
|
|
|
2.14.3
|
2016-08-30 16:42:17 +02:00
|
|
|
|