This commit is contained in:
parent
d7ea198cad
commit
6d92651623
@ -23,11 +23,11 @@ public class Action {
|
||||
|
||||
public static <T extends Comparable<T>> Action createBlockStatePropertyAction(long cost, Property<T> property, T successValue, T failureValue) {
|
||||
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, pos, state) -> {
|
||||
if (!state.get(property).equals(failureValue)) {
|
||||
if (state.contains(property) && !state.get(property).equals(failureValue)) {
|
||||
world.setBlockState(pos, state.with(property, failureValue));
|
||||
}
|
||||
});
|
||||
|
@ -39,6 +39,8 @@ public class EnergyTicker {
|
||||
for (EnergyProviderBlockEntity provider : started) {
|
||||
provider.logicTick();
|
||||
}
|
||||
|
||||
scheduled.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,3 @@
|
||||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"particle": "energonrelics:block/holographic_sky_off"
|
||||
}
|
||||
"parent": "energonrelics:holographic_sky_off"
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 843 B After Width: | Height: | Size: 909 B |
Reference in New Issue
Block a user