mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
[Bleeding] Add null check to getFacing(); Fixes BUKKIT-1249
This commit is contained in:
parent
979d54e78d
commit
7ce3a4dbcc
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue