aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0152-Disable-ticking-of-snow-blocks.patch
blob: e90bdb03601c8fb1778e9cc57a29e1d4db271e11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 4696c453f870dd2315654441c612af5f24fa0277 Mon Sep 17 00:00:00 2001
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
index 8123d7295..b6765e5bc 100644
--- a/src/main/java/net/minecraft/server/BlockSnowBlock.java
+++ b/src/main/java/net/minecraft/server/BlockSnowBlock.java
@@ -6,7 +6,7 @@ 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);
     }
 
@@ -18,6 +18,8 @@ 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.getBrightness(EnumSkyBlock.BLOCK, blockposition) > 11) {
             // CraftBukkit start
@@ -30,4 +32,6 @@ public class BlockSnowBlock extends Block {
         }
 
     }
+    */
+    //Paper end
 }
-- 
2.12.2