Browse Source

Fixed Axle duplicating itself when it breaks

Gregorius Techneticies 3 months ago
parent
commit
f23c92e3cb
Signed by: Gregorius Techneticies <gregoriustech@gmail.com> GPG Key ID: 1B693EA14F2FD70F

+ 5
- 1
src/main/java/gregapi/tileentity/base/TileEntityBase04MultiTileEntities.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2019 Gregorius Techneticies
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -177,18 +177,22 @@ public abstract class TileEntityBase04MultiTileEntities extends TileEntityBase03
177 177
 		return rList;
178 178
 	}
179 179
 	public void popOff() {
180
+		if (getBlockOffset(0,0,0) == NB) return;
180 181
 		for (ItemStack tStack : getDrops(0, F)) ST.drop(worldObj, xCoord, yCoord, zCoord, tStack);
181 182
 		setToAir();
182 183
 	}
183 184
 	public void popOff(Entity aEntity) {
185
+		if (getBlockOffset(0,0,0) == NB) return;
184 186
 		for (ItemStack tStack : getDrops(0, F)) ST.drop(aEntity.worldObj, aEntity.posX, aEntity.posY, aEntity.posZ, tStack);
185 187
 		setToAir();
186 188
 	}
187 189
 	public void popOff(World aWorld, double aX, double aY, double aZ) {
190
+		if (getBlockOffset(0,0,0) == NB) return;
188 191
 		for (ItemStack tStack : getDrops(0, F)) ST.drop(aWorld, aX, aY, aZ, tStack);
189 192
 		setToAir();
190 193
 	}
191 194
 	public void popOff(World aWorld, ChunkCoordinates aCoords) {
195
+		if (getBlockOffset(0,0,0) == NB) return;
192 196
 		for (ItemStack tStack : getDrops(0, F)) ST.drop(aWorld, aCoords, tStack);
193 197
 		setToAir();
194 198
 	}

Loading…
Cancel
Save