mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-08 00:21:50 +01:00
[Bleeding] Add null check to getFacing(); Fixes BUKKIT-1249
By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
parent
4e54839dda
commit
5932dfd427
@ -35,7 +35,8 @@ public abstract class SimpleAttachableMaterialData extends MaterialData implemen
|
||||
}
|
||||
|
||||
public BlockFace getFacing() {
|
||||
return getAttachedFace().getOppositeFace();
|
||||
BlockFace attachedFace = getAttachedFace();
|
||||
return attachedFace == null ? null : attachedFace.getOppositeFace();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user