mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
The mod now compiles and runs,
if the following packages are excluded: client.gui (Haven't worked out guis yet) client.nei (NEI isn't here yet) client.render.block (ISBRH doesn't exist any more) client.render.item (Nor do Item renderers) common.multipart (Nor does CB's FMP) generators (Couldn't be bothered, will fix when more of Mek Core works again)
This commit is contained in:
1 parent
6f44d4af24
commit
5e54c0a681
7 files changed
+40
-14
No files matched your search
@@ -8,6 +8,7 @@ import dan200.computercraft.api.peripheral.IPeripheral;
|
||||
import dan200.computercraft.api.peripheral.IPeripheralProvider;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
/**
|
||||
@@ -69,9 +70,9 @@ public class CCPeripheral implements IPeripheral
|
||||
public static class CCPeripheralProvider implements IPeripheralProvider
|
||||
{
|
||||
@Override
|
||||
public IPeripheral getPeripheral(World world, int x, int y, int z, int side)
|
||||
public IPeripheral getPeripheral(World world, BlockPos pos, EnumFacing side)
|
||||
{
|
||||
TileEntity te = world.getTileEntity(new BlockPos(x, y, z));
|
||||
TileEntity te = world.getTileEntity(pos);
|
||||
|
||||
if(te != null && te instanceof IComputerIntegration)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user