This commit is contained in:
parent
40de5445d1
commit
9dde7b4288
@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
**1.0.4**
|
||||||
|
* Fix Crash When Sneak-Using Dye On A Block
|
||||||
|
|
||||||
**1.0.3**
|
**1.0.3**
|
||||||
* Fix Gravity Crash
|
* Fix Gravity Crash
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
|
|||||||
fabric_loader_version = 0.9.2+build.206
|
fabric_loader_version = 0.9.2+build.206
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.0.3
|
mod_version = 1.0.4
|
||||||
maven_group = com.thebrokenrail
|
maven_group = com.thebrokenrail
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
@ -106,6 +106,7 @@ public class PhaseShifterBlock extends EnergyBlock {
|
|||||||
UseBlockCallback.EVENT.register((player, world, hand, hit) -> {
|
UseBlockCallback.EVENT.register((player, world, hand, hit) -> {
|
||||||
if (!player.isSpectator() && player.shouldCancelInteraction()) {
|
if (!player.isSpectator() && player.shouldCancelInteraction()) {
|
||||||
BlockState state = world.getBlockState(hit.getBlockPos());
|
BlockState state = world.getBlockState(hit.getBlockPos());
|
||||||
|
if (state.getBlock() == PhaseShifterBlock.this) {
|
||||||
ItemStack stack = player.getStackInHand(hand);
|
ItemStack stack = player.getStackInHand(hand);
|
||||||
if (stack.getItem() instanceof DyeItem) {
|
if (stack.getItem() instanceof DyeItem) {
|
||||||
DyeColor newColor = ((DyeItem) stack.getItem()).getColor();
|
DyeColor newColor = ((DyeItem) stack.getItem()).getColor();
|
||||||
@ -118,6 +119,7 @@ public class PhaseShifterBlock extends EnergyBlock {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return ActionResult.PASS;
|
return ActionResult.PASS;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user