mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 09:17:39 +00:00
Avoid map lookup in isMovementBlocker
calls (#2906)
This commit is contained in:
parent
a369513684
commit
378334bd75
@ -135,9 +135,10 @@ public class PaperweightBlockMaterial implements BlockMaterial {
|
||||
return block.isRandomlyTicking(blockState);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public boolean isMovementBlocker() {
|
||||
return craftMaterial.isSolid();
|
||||
return blockState.blocksMotion();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -125,9 +125,10 @@ public class PaperweightBlockMaterial implements BlockMaterial {
|
||||
return block.isRandomlyTicking(blockState);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public boolean isMovementBlocker() {
|
||||
return craftMaterial.isSolid();
|
||||
return blockState.blocksMotion();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -126,9 +126,10 @@ public class PaperweightBlockMaterial implements BlockMaterial {
|
||||
return blockState.isRandomlyTicking();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public boolean isMovementBlocker() {
|
||||
return craftMaterial.isSolid();
|
||||
return blockState.blocksMotion();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -126,9 +126,10 @@ public class PaperweightBlockMaterial implements BlockMaterial {
|
||||
return blockState.isRandomlyTicking();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public boolean isMovementBlocker() {
|
||||
return craftMaterial.isSolid();
|
||||
return blockState.blocksMotion();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user