mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-14 17:24:53 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d6d7ff9aa |
@@ -5,6 +5,7 @@ import java.util.List;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
@@ -152,7 +153,8 @@ public class ComponentPowerReceptor extends MachineComponent
|
||||
}
|
||||
|
||||
private void addToEnergyNet() {
|
||||
if (getMachine().getWorld() == null) {
|
||||
World world = getMachine().getWorld();
|
||||
if (world == null || world.isRemote) {
|
||||
return;
|
||||
}
|
||||
if (Mods.ic2.active()) {
|
||||
@@ -161,7 +163,8 @@ public class ComponentPowerReceptor extends MachineComponent
|
||||
}
|
||||
|
||||
private void removeFromEnergyNet() {
|
||||
if (getMachine().getWorld() == null) {
|
||||
World world = getMachine().getWorld();
|
||||
if (world == null || world.isRemote) {
|
||||
return;
|
||||
}
|
||||
if (Mods.ic2.active()) {
|
||||
|
||||
Reference in new issue
Block a user