2015-03-21 03:39:37 +01:00
|
|
|
From 8c9305592b06bbdb8eafcdc2ce97f7e95dc0115b Mon Sep 17 00:00:00 2001
|
2014-11-28 02:17:45 +01:00
|
|
|
From: Dmck2b <suddenly@suddenly.coffee>
|
2015-03-08 02:16:09 +01:00
|
|
|
Date: Sun, 8 Mar 2015 03:45:49 -0500
|
2014-11-28 02:17:45 +01:00
|
|
|
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
|
2015-03-08 02:16:09 +01:00
|
|
|
index 0d108eb..3f34eac 100644
|
2014-11-28 02:17:45 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/BlockMinecartTrackAbstract.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockMinecartTrackAbstract.java
|
2015-03-08 02:16:09 +01:00
|
|
|
@@ -88,8 +88,12 @@ public abstract class BlockMinecartTrackAbstract extends Block {
|
2014-11-28 02:17:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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-03-08 02:16:09 +01:00
|
|
|
1.9.1
|
2014-11-28 02:17:45 +01:00
|
|
|
|