mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2024-11-22 01:58:54 +00:00
修复获取到Location为null的问题...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
a0e826f8fc
commit
c05dd7ea0f
@ -222,6 +222,9 @@ public class ContainerShop implements Shop {
|
||||
* null if this shop is not attached to another.
|
||||
*/
|
||||
public ContainerShop getAttachedShop() {
|
||||
if (this.getLocation() != null) {
|
||||
return null;
|
||||
}
|
||||
final Block c = Util.getSecondHalf(this.getLocation().getBlock());
|
||||
if (c == null) {
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user