Skip to content

Commit

Permalink
This is all your fault Tech
Browse files Browse the repository at this point in the history
  • Loading branch information
M-W-K committed Dec 27, 2023
1 parent 08aebe6 commit 87e6c44
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 38 deletions.
14 changes: 0 additions & 14 deletions src/main/java/gregtech/api/pipenet/tile/TileEntityPipeBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.util.Constants.NBT;

import org.jetbrains.annotations.MustBeInvokedByOverriders;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down Expand Up @@ -588,19 +587,6 @@ public boolean shouldRefresh(@NotNull World world, @NotNull BlockPos pos, @NotNu
return true;
}

@MustBeInvokedByOverriders
@Override
public void onChunkUnload() {
super.onChunkUnload();
if (!world.isRemote) {
WorldPipeNet<?, ?> worldPipeNet = getPipeBlock().getWorldPipeNet(getWorld());
PipeNet<?> net = worldPipeNet.getNetFromPos(pos);
if (net != null) {
net.onChunkUnload();
}
}
}

public void doExplosion(float explosionPower) {
getWorld().setBlockToAir(getPos());
if (!getWorld().isRemote) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,6 @@ public <T> T getCapabilityInternal(Capability<T> capability, @Nullable EnumFacin
return super.getCapabilityInternal(capability, facing);
}

@Override
public void onChunkUnload() {
super.onChunkUnload();
this.handlers.clear();
}

@Override
public int getDefaultPaintingColor() {
return 0x404040;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,4 @@ public int getTransferredItems() {
updateTransferredState();
return this.transferredItems;
}

@Override
public void onChunkUnload() {
super.onChunkUnload();
this.handlers.clear();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,6 @@ public void readFromNBT(@NotNull NBTTagCompound compound) {
}
}

@Override
public void onChunkUnload() {
super.onChunkUnload();
this.handlers.clear();
}

private static class DefaultLaserContainer implements ILaserContainer {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,6 @@ public void receiveCustomData(int discriminator, PacketBuffer buf) {
}
}

@Override
public void onChunkUnload() {
super.onChunkUnload();
this.handlers.clear();
}

private static class DefaultDataHandler implements IDataAccessHatch {

@Override
Expand Down

0 comments on commit 87e6c44

Please sign in to comment.