mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Don't compare null BlockStates.
This commit is contained in:
parent
db98cdad0b
commit
31d4daf474
@ -106,7 +106,7 @@ public class PlatformManager {
|
|||||||
// Make sure that versions are in sync
|
// Make sure that versions are in sync
|
||||||
if (firstSeenVersion != null) {
|
if (firstSeenVersion != null) {
|
||||||
if (!firstSeenVersion.equals(platform.getVersion())) {
|
if (!firstSeenVersion.equals(platform.getVersion())) {
|
||||||
logger.warn("Multiple ports of WorldEdit are installed but they report different versions ({0} and {1}). " +
|
logger.warn("Multiple ports of WorldEdit are installed but they report different versions ({} and {}). " +
|
||||||
"If these two versions are truly different, then you may run into unexpected crashes and errors.",
|
"If these two versions are truly different, then you may run into unexpected crashes and errors.",
|
||||||
new Object[]{ firstSeenVersion, platform.getVersion() });
|
new Object[]{ firstSeenVersion, platform.getVersion() });
|
||||||
}
|
}
|
||||||
|
@ -145,6 +145,9 @@ public class BlockState implements BlockStateHolder<BlockState> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equalsFuzzy(BlockStateHolder<?> o) {
|
public boolean equalsFuzzy(BlockStateHolder<?> o) {
|
||||||
|
if (null == o) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
// Added a reference equality check for speediness
|
// Added a reference equality check for speediness
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user