geforkt von Mirrors/Paper
cab333b217
Don't send requests of every player was found in the global api cache SpigotMC/Spigot@841270ff1e Correctly set the response code for the cached lookups and return the ... SpigotMC/Spigot@f170b7899c Don't try and re-set the global api cache on reload SpigotMC/Spigot@b410a00a66 Use a compile time sneaky throw hack. SpigotMC/Spigot@508462b96b Fix a missed rename in WorldGenGroundBush SpigotMC/Spigot@0614d8fae9
28 Zeilen
1.3 KiB
Diff
28 Zeilen
1.3 KiB
Diff
From 70092df3110e536484714196a0aeb5b23e57b54d Mon Sep 17 00:00:00 2001
|
|
From: Thinkofdeath <thethinkofdeath@gmail.com>
|
|
Date: Mon, 20 Jan 2014 20:42:28 +0000
|
|
Subject: [PATCH] Don't let trees replace any block.
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldGenForestTree.java b/src/main/java/net/minecraft/server/WorldGenForestTree.java
|
|
index c0d0ff9..6196163 100644
|
|
--- a/src/main/java/net/minecraft/server/WorldGenForestTree.java
|
|
+++ b/src/main/java/net/minecraft/server/WorldGenForestTree.java
|
|
@@ -124,7 +124,12 @@ public class WorldGenForestTree extends WorldGenTreeAbstract {
|
|
int k3;
|
|
|
|
for (k3 = 0; k3 < j3; ++k3) {
|
|
- this.setTypeAndData(world, i + l2, k2 - k3 - 1, k + i3, Blocks.LOG2, 1);
|
|
+ Block block = world.getType(i + l2, k2 - k3 - 1, k + i3);
|
|
+
|
|
+ if (block.getMaterial() == Material.AIR || block.getMaterial() == Material.LEAVES)
|
|
+ {
|
|
+ this.setTypeAndData(world, i + l2, k2 - k3 - 1, k + i3, Blocks.LOG2, 1);
|
|
+ }
|
|
}
|
|
|
|
int l3;
|
|
--
|
|
1.9.1
|
|
|