-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix AirLiquidPlace falses (and BadPacketsX false) #1822
base: 2.0
Are you sure you want to change the base?
Conversation
src/main/java/ac/grim/grimac/checks/impl/scaffolding/AirLiquidPlace.java
Outdated
Show resolved
Hide resolved
06e7b23
to
a421e7b
Compare
CheckManagerlistener still has conflicts |
Yes I'll fix this when we resolve #1846 since it modifies similar lines. |
a421e7b
to
c9e60c2
Compare
I've rebased it @SamB440 |
src/main/java/ac/grim/grimac/checks/impl/scaffolding/AirLiquidPlace.java
Outdated
Show resolved
Hide resolved
src/main/java/ac/grim/grimac/utils/change/PlayerBlockHistory.java
Outdated
Show resolved
Hide resolved
I'll take care of this in a couple days; been pretty busy. |
…tlyUpdatedBlocks() class
c9e60c2
to
6f8776b
Compare
I'll merge this myself, just need someone else to give it a review and make sure everything's ready. |
private final Vector3i location; | ||
private final int tick; | ||
private final Cause cause; // Optional enum for cause | ||
// private final long time; // System time in milliseconds or nanoseconds for ordering |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// private final long time; // System time in milliseconds or nanoseconds for ordering |
@Override | ||
public void onBlockPlace(final BlockPlace place) { | ||
if (player.gamemode == GameMode.CREATIVE) return; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comments in the code explain everything very clearly and in detail.
This also indirectly fixes a BadPacketsX false which is triggered together when AirLiquidPlace fails in rapid succession multiple times in a tick.
EDIT: fixes #1508, #1403 and #1776