Compare commits

..

1 Commits

Author SHA1 Message Date
7b6747938d Build PRs on Java 17 and 21 2023-12-02 10:51:34 +01:00
2 changed files with 4 additions and 6 deletions

View File

@ -7,15 +7,16 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
jdk: [ 17, 21 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup Java
- name: Setup Java ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
java-version: ${{ matrix.jdk }}
- name: Clean Build
run: ./gradlew clean build

View File

@ -261,10 +261,7 @@ public class BlockEventListener implements Listener {
final BlockFace facing = piston.getFacing();
location = location.add(facing.getModX(), facing.getModY(), facing.getModZ());
Plot newPlot = area.getOwnedPlotAbs(location);
if (plot.equals(newPlot)) {
return;
}
if (!plot.isMerged() || !plot.getConnectedPlots().contains(newPlot)) {
if (!plot.equals(newPlot)) {
event.setCancelled(true);
plot.debug("Prevented piston update because of invalid edge piston detection");
}