mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 07:59:08 +00:00
Hex Color Update
This commit is contained in:
1 parent
3c610e7105
commit
3a00d08304
50 files changed
+456
-360
No files matched your search
@@ -3,7 +3,7 @@ package noppes.npcs.blocks;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import noppes.npcs.blocks.tiles.TileColorable;
|
||||
import noppes.npcs.blocks.tiles.TileVariant;
|
||||
|
||||
public abstract class BlockTrigger extends BlockRotated{
|
||||
|
||||
@@ -23,7 +23,7 @@ public abstract class BlockTrigger extends BlockRotated{
|
||||
|
||||
@Override
|
||||
public int isProvidingWeakPower(IBlockAccess world, int x, int y, int z, int p_149709_5_){
|
||||
TileColorable tile = (TileColorable)world.getTileEntity(x, y, z);
|
||||
TileVariant tile = (TileVariant)world.getTileEntity(x, y, z);
|
||||
if(tile != null)
|
||||
return tile.powerProvided();
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user