mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
26 lines
No EOL
1.2 KiB
Diff
26 lines
No EOL
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Dmck2b <suddenly@suddenly.coffee>
|
|
Date: Sun, 31 Aug 2014 18:12:10 +0100
|
|
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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
--- a/src/main/java/net/minecraft/server/BlockMinecartTrackAbstract.java
|
|
+++ b/src/main/java/net/minecraft/server/BlockMinecartTrackAbstract.java
|
|
@@ -0,0 +0,0 @@ public abstract class BlockMinecartTrackAbstract extends Block {
|
|
}
|
|
|
|
if (flag) {
|
|
- this.b(world, i, j, k, world.getData(i, j, k), 0);
|
|
- world.setAir(i, j, k);
|
|
+ // PaperSpigot start - Rails dupe workaround
|
|
+ if (world.getType(i, j, k).getMaterial() != Material.AIR) {
|
|
+ this.b(world, i, j, k, world.getData(i, j, k), 0);
|
|
+ world.setAir(i, j, k);
|
|
+ }
|
|
+ // PaperSpigot end
|
|
} else {
|
|
this.a(world, i, j, k, l, i1, block);
|
|
}
|
|
--
|