Fix
EnergonRelics/pipeline/head This commit looks good Details

This commit is contained in:
TheBrokenRail 2020-07-26 12:33:37 -04:00
parent d7ea198cad
commit 6d92651623
4 changed files with 5 additions and 6 deletions

View File

@ -23,11 +23,11 @@ public class Action {
public static <T extends Comparable<T>> Action createBlockStatePropertyAction(long cost, Property<T> property, T successValue, T failureValue) { public static <T extends Comparable<T>> Action createBlockStatePropertyAction(long cost, Property<T> property, T successValue, T failureValue) {
return new Action(cost, (world, pos, state) -> { return new Action(cost, (world, pos, state) -> {
if (!state.get(property).equals(successValue)) { if (state.contains(property) && !state.get(property).equals(successValue)) {
world.setBlockState(pos, state.with(property, successValue)); world.setBlockState(pos, state.with(property, successValue));
} }
}, (world, pos, state) -> { }, (world, pos, state) -> {
if (!state.get(property).equals(failureValue)) { if (state.contains(property) && !state.get(property).equals(failureValue)) {
world.setBlockState(pos, state.with(property, failureValue)); world.setBlockState(pos, state.with(property, failureValue));
} }
}); });

View File

@ -39,6 +39,8 @@ public class EnergyTicker {
for (EnergyProviderBlockEntity provider : started) { for (EnergyProviderBlockEntity provider : started) {
provider.logicTick(); provider.logicTick();
} }
scheduled.clear();
} }
} }
} }

View File

@ -1,6 +1,3 @@
{ {
"parent": "minecraft:block/cube_all", "parent": "energonrelics:holographic_sky_off"
"textures": {
"particle": "energonrelics:block/holographic_sky_off"
}
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 843 B

After

Width:  |  Height:  |  Size: 909 B