mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 05:41:26 +01:00
Disable ticking of snow blocks
This commit is contained in:
parent
246294d161
commit
755861dfb6
36
Spigot-Server-Patches/Disable-ticking-of-snow-blocks.patch
Normal file
36
Spigot-Server-Patches/Disable-ticking-of-snow-blocks.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 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 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
|
||||||
|
}
|
||||||
|
--
|
@ -44,6 +44,7 @@ import BlockFalling
|
|||||||
import BlockFluids
|
import BlockFluids
|
||||||
import BlockFurnace
|
import BlockFurnace
|
||||||
import BlockIceFrost
|
import BlockIceFrost
|
||||||
|
import BlockSnowBlock
|
||||||
import BlockPosition
|
import BlockPosition
|
||||||
import BlockStateEnum
|
import BlockStateEnum
|
||||||
import ChunkCache
|
import ChunkCache
|
||||||
|
Loading…
Reference in New Issue
Block a user