mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-01 10:27:11 +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