Skip to content

Commit

Permalink
[BLEEDING] Typo.
Browse files Browse the repository at this point in the history
[BLEEDING] just to note blockinteract changes may alter things.

Currently it looks like only blockplace.against is using the last move
of BlockInteractData - later other checks are intended to use that too,
in terms of a data source.
  • Loading branch information
asofold committed May 1, 2017
1 parent c07b1fb commit 01b311b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -238,7 +238,7 @@ public boolean getLastAllowUseBlock() {
return lastAllowUseBlock;
}

public boolean getLastisCancelled() {
public boolean getLastIsCancelled() {
return lastIsCancelled;
}

Expand Down
Expand Up @@ -51,7 +51,7 @@ public boolean check(final Player player, final Block block, final Material plac
if (!violation) {
if (BlockProperties.isAir(againstType)) {
// Attempt to workaround blocks like cactus.
if (!bdata.getLastisCancelled() && bdata.matchesLastBlock(TickTask.getTick(), blockAgainst)) {
if (!bdata.getLastIsCancelled() && bdata.matchesLastBlock(TickTask.getTick(), blockAgainst)) {
// Block was placed against something (e.g. cactus), allow it.
// TODO: Later reset can conflict, though it makes sense to reset with placing blocks in general.
// TODO: Reset on leaving the listener rather - why could it conflict?
Expand Down

0 comments on commit 01b311b

Please sign in to comment.