Skip to content

Commit

Permalink
Compatibility fix for Botania, crates now won't be moved by the Shard of
Browse files Browse the repository at this point in the history
Laputa
  • Loading branch information
Victorious3 committed Jul 26, 2014
1 parent bc8486e commit 981bb68
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
import vazkii.botania.api.mana.ILaputaImmobile;
import cpw.mods.fml.common.Optional.Interface;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class TileCrate extends TileContainerBetterStorage {
@Interface(modid = "Botania", iface = "vazkii.botania.api.mana.ILaputaImmobile", striprefs = true)
public class TileCrate extends TileContainerBetterStorage implements ILaputaImmobile{

private ConnectedTexture texture = new ConnectedTextureCrate();

Expand Down Expand Up @@ -87,5 +90,9 @@ public boolean canConnect(IBlockAccess world, int x, int y, int z, ForgeDirectio
return (crate.getID() == connectedCrate.getID());
}
}


@Override
public boolean canMove(World world, int x, int y, int z) {
return false;
}
}

0 comments on commit 981bb68

Please sign in to comment.