Compare commits

..

No commits in common. "aa3cf6d5110530707c5f4be2621b026fd4fd73e6" and "cfdbfd3a6a39c38790261b9dc71a925f2c060efc" have entirely different histories.

7 changed files with 1 additions and 7 deletions

View File

@ -9,7 +9,7 @@ loader_version=0.15.11
# Mod Properties # Mod Properties
modrinth_id = jCpoCBpn modrinth_id = jCpoCBpn
mod_version = 1.5.10 mod_version = 1.5.9
maven_group = fr.adrien1106 maven_group = fr.adrien1106
archives_base_name = ReFramed archives_base_name = ReFramed
mod_id = reframed mod_id = reframed

View File

@ -43,7 +43,6 @@ public class ReFramedHalfStairBlock extends WaterloggableReFramedBlock {
@Override @Override
public boolean canReplace(BlockState state, ItemPlacementContext context) { public boolean canReplace(BlockState state, ItemPlacementContext context) {
if (context.getPlayer() == null) return false;
Direction dir = state.get(CORNER).getDirection(state.get(CORNER_FACE)); Direction dir = state.get(CORNER).getDirection(state.get(CORNER_FACE));
return !( return !(
context.getPlayer().isSneaking() context.getPlayer().isSneaking()

View File

@ -39,7 +39,6 @@ public class ReFramedLayerBlock extends ReFramedSlabBlock {
@Override @Override
public boolean canReplace(BlockState state, ItemPlacementContext context) { public boolean canReplace(BlockState state, ItemPlacementContext context) {
if (context.getPlayer() == null) return false;
return !( return !(
context.getPlayer().isSneaking() context.getPlayer().isSneaking()
|| !(context.getStack().getItem() instanceof BlockItem block_item) || !(context.getStack().getItem() instanceof BlockItem block_item)

View File

@ -42,7 +42,6 @@ public class ReFramedSlabBlock extends WaterloggableReFramedBlock {
@Override @Override
public boolean canReplace(BlockState state, ItemPlacementContext context) { public boolean canReplace(BlockState state, ItemPlacementContext context) {
if (context.getPlayer() == null) return false;
return !( return !(
context.getPlayer().isSneaking() context.getPlayer().isSneaking()
|| !(context.getStack().getItem() instanceof BlockItem block_item) || !(context.getStack().getItem() instanceof BlockItem block_item)

View File

@ -43,7 +43,6 @@ public class ReFramedSmallCubeBlock extends WaterloggableReFramedBlock {
@Override @Override
public boolean canReplace(BlockState state, ItemPlacementContext context) { public boolean canReplace(BlockState state, ItemPlacementContext context) {
if (context.getPlayer() == null) return false;
Corner corner = state.get(CORNER); Corner corner = state.get(CORNER);
return !( return !(
context.getPlayer().isSneaking() context.getPlayer().isSneaking()

View File

@ -46,7 +46,6 @@ public class ReFramedStairBlock extends WaterloggableReFramedBlock {
@Override @Override
public boolean canReplace(BlockState state, ItemPlacementContext context) { public boolean canReplace(BlockState state, ItemPlacementContext context) {
if (context.getPlayer() == null) return false;
return !( return !(
context.getPlayer().isSneaking() context.getPlayer().isSneaking()
|| !(context.getStack().getItem() instanceof BlockItem block_item) || !(context.getStack().getItem() instanceof BlockItem block_item)

View File

@ -43,7 +43,6 @@ public class ReFramedStepBlock extends WaterloggableReFramedBlock {
@Override @Override
public boolean canReplace(BlockState state, ItemPlacementContext context) { public boolean canReplace(BlockState state, ItemPlacementContext context) {
if (context.getPlayer() == null) return false;
Edge edge = state.get(EDGE); Edge edge = state.get(EDGE);
return !( return !(
context.getPlayer().isSneaking() context.getPlayer().isSneaking()