mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +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);
|
return block.isRandomlyTicking(blockState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@Override
|
@Override
|
||||||
public boolean isMovementBlocker() {
|
public boolean isMovementBlocker() {
|
||||||
return craftMaterial.isSolid();
|
return blockState.blocksMotion();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -125,9 +125,10 @@ public class PaperweightBlockMaterial implements BlockMaterial {
|
|||||||
return block.isRandomlyTicking(blockState);
|
return block.isRandomlyTicking(blockState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@Override
|
@Override
|
||||||
public boolean isMovementBlocker() {
|
public boolean isMovementBlocker() {
|
||||||
return craftMaterial.isSolid();
|
return blockState.blocksMotion();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -126,9 +126,10 @@ public class PaperweightBlockMaterial implements BlockMaterial {
|
|||||||
return blockState.isRandomlyTicking();
|
return blockState.isRandomlyTicking();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@Override
|
@Override
|
||||||
public boolean isMovementBlocker() {
|
public boolean isMovementBlocker() {
|
||||||
return craftMaterial.isSolid();
|
return blockState.blocksMotion();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -126,9 +126,10 @@ public class PaperweightBlockMaterial implements BlockMaterial {
|
|||||||
return blockState.isRandomlyTicking();
|
return blockState.isRandomlyTicking();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@Override
|
@Override
|
||||||
public boolean isMovementBlocker() {
|
public boolean isMovementBlocker() {
|
||||||
return craftMaterial.isSolid();
|
return blockState.blocksMotion();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user