2015-02-23 22:03:10 +01:00
|
|
|
From 713d5992f6f6777bd71ea4a98295c757aa98b81e Mon Sep 17 00:00:00 2001
|
2014-11-28 02:17:45 +01:00
|
|
|
From: Dmck2b <suddenly@suddenly.coffee>
|
|
|
|
Date: Fri, 28 Nov 2014 12:30:47 -0600
|
|
|
|
Subject: [PATCH] Temporary fix for rails dupe
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockMinecartTrackAbstract.java b/src/main/java/net/minecraft/server/BlockMinecartTrackAbstract.java
|
|
|
|
index 063177d..f1e299f 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/BlockMinecartTrackAbstract.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockMinecartTrackAbstract.java
|
|
|
|
@@ -84,8 +84,12 @@ public abstract class BlockMinecartTrackAbstract extends Block {
|
|
|
|
}
|
|
|
|
|
|
|
|
if (flag) {
|
|
|
|
- this.b(world, blockposition, iblockdata, 0);
|
|
|
|
- world.setAir(blockposition);
|
|
|
|
+ // PaperSpigot start - Rails dupe workaround
|
|
|
|
+ if (world.getType(blockposition).getBlock().getMaterial() != Material.AIR) {
|
|
|
|
+ this.b(world, blockposition, iblockdata, 0);
|
|
|
|
+ world.setAir(blockposition);
|
|
|
|
+ }
|
|
|
|
+ // PaperSpigot end
|
|
|
|
} else {
|
|
|
|
this.b(world, blockposition, iblockdata, block);
|
|
|
|
}
|
|
|
|
--
|
2015-01-29 22:26:20 +01:00
|
|
|
1.9.5.msysgit.0
|
2014-11-28 02:17:45 +01:00
|
|
|
|