mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-01-06 00:08:11 +01:00
Fixed npe
Signed-off-by: Grafe <flingelfrank@hotmail.com>
This commit is contained in:
parent
5b81bfbeb5
commit
39f20a099d
@ -201,9 +201,11 @@ public class BlockListener implements Listener {
|
||||
for(GameWorld gworld : GameWorld.gworlds){
|
||||
if(event.getBlock().getWorld() == gworld.world){
|
||||
for(DSign sign : gworld.dSigns){
|
||||
if(sign.isRedstoneTrigger()){
|
||||
if(sign.getRtBlock().isBlockPowered()){
|
||||
sign.onTrigger();
|
||||
if(sign!=null){
|
||||
if(sign.isRedstoneTrigger()){
|
||||
if(sign.getRtBlock().isBlockPowered()){
|
||||
sign.onTrigger();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -34,9 +34,11 @@ public class SIGNTrigger extends DSign{
|
||||
public void onTrigger() {
|
||||
if(initialized){
|
||||
for(DSign dsign : this.gworld.dSigns){
|
||||
if(dsign.isSignTrigger()){
|
||||
if(triggerId == dsign.getStId()){
|
||||
dsign.onTrigger();
|
||||
if(dsign != null){
|
||||
if(dsign.isSignTrigger()){
|
||||
if(triggerId == dsign.getStId()){
|
||||
dsign.onTrigger();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user