Fixes.
This commit is contained in:
@@ -33,6 +33,11 @@ public class ClientSetup {
|
|||||||
new ResourceLocation(RS.ID, "block/controller/cutouts/on")
|
new ResourceLocation(RS.ID, "block/controller/cutouts/on")
|
||||||
));
|
));
|
||||||
|
|
||||||
|
bakedModelOverrideRegistry.add(new ResourceLocation(RS.ID, "grid"), (base, registry) -> new FullbrightBakedModel(
|
||||||
|
base,
|
||||||
|
new ResourceLocation(RS.ID, "block/grid/cutouts/front_connected")
|
||||||
|
));
|
||||||
|
|
||||||
bakedModelOverrideRegistry.add(new ResourceLocation(RS.ID, "disk_drive"), (base, registry) -> new FullbrightBakedModel(
|
bakedModelOverrideRegistry.add(new ResourceLocation(RS.ID, "disk_drive"), (base, registry) -> new FullbrightBakedModel(
|
||||||
new DiskDriveBakedModel(
|
new DiskDriveBakedModel(
|
||||||
base,
|
base,
|
||||||
|
|||||||
@@ -92,11 +92,7 @@ public abstract class NetworkNode implements INetworkNode, INetworkNodeVisitor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void onConnectedStateChange(INetwork network, boolean state) {
|
protected void onConnectedStateChange(INetwork network, boolean state) {
|
||||||
BlockState blockState = world.getBlockState(pos);
|
// NO OP
|
||||||
|
|
||||||
if (blockState.getBlock() instanceof NodeBlock && ((NodeBlock) blockState.getBlock()).hasConnectedState()) {
|
|
||||||
world.setBlockState(pos, world.getBlockState(pos).with(NodeBlock.CONNECTED, state));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -148,6 +144,12 @@ public abstract class NetworkNode implements INetworkNode, INetworkNodeVisitor {
|
|||||||
couldUpdate = canUpdate;
|
couldUpdate = canUpdate;
|
||||||
throttlingDisabled = false;
|
throttlingDisabled = false;
|
||||||
|
|
||||||
|
BlockState blockState = world.getBlockState(pos);
|
||||||
|
|
||||||
|
if (blockState.getBlock() instanceof NodeBlock && ((NodeBlock) blockState.getBlock()).hasConnectedState()) {
|
||||||
|
world.setBlockState(pos, world.getBlockState(pos).with(NodeBlock.CONNECTED, canUpdate));
|
||||||
|
}
|
||||||
|
|
||||||
if (network != null) {
|
if (network != null) {
|
||||||
onConnectedStateChange(network, canUpdate);
|
onConnectedStateChange(network, canUpdate);
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ public class GridBlock extends NodeBlock {
|
|||||||
|
|
||||||
modelRegistration.addBakedModelOverride(info.getId(), base -> new BakedModelFullbright(
|
modelRegistration.addBakedModelOverride(info.getId(), base -> new BakedModelFullbright(
|
||||||
base,
|
base,
|
||||||
RS.ID + ":blocks/grid/cutouts/front_connected",
|
|
||||||
RS.ID + ":blocks/grid/cutouts/crafting_front_connected",
|
RS.ID + ":blocks/grid/cutouts/crafting_front_connected",
|
||||||
RS.ID + ":blocks/grid/cutouts/pattern_front_connected",
|
RS.ID + ":blocks/grid/cutouts/pattern_front_connected",
|
||||||
RS.ID + ":blocks/grid/cutouts/fluid_front_connected"
|
RS.ID + ":blocks/grid/cutouts/fluid_front_connected"
|
||||||
|
|||||||
Reference in New Issue
Block a user