Skip to content

Commit

Permalink
Apply Style Changes From Code Review
Browse files Browse the repository at this point in the history
Co-authored-by: ManInMyVan <[email protected]>
  • Loading branch information
Axionize and ManInMyVan authored Dec 18, 2024
1 parent dfb53be commit b3eba2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

@CheckData(name = "AirLiquidPlace")
public class AirLiquidPlace extends BlockPlaceCheck {

public AirLiquidPlace(GrimPlayer player) {
super(player);
}

/*
* This check has been plagued by falses for ages, and I've finally figured it out.
* When breaking and placing on the same tick in the same tick, I believe the vanilla client always sends DIGGING ACTION packets first
Expand Down Expand Up @@ -72,7 +72,7 @@ public void onBlockPlace(final BlockPlace place) {
// There should only be one block here for legit clients
for (BlockModification blockModification : blockModifications) {
StateType stateType = blockModification.getOldBlockContents().getType();
if (!(stateType.isAir() || Materials.isNoPlaceLiquid(stateType))) {
if (!stateType.isAir() && !Materials.isNoPlaceLiquid(stateType)) {
return;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ public int size() {
public void clear() {
blockHistory.clear();
}
}
}

0 comments on commit b3eba2d

Please sign in to comment.