mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Merge remote-tracking branch 'origin/breaking' into breaking
This commit is contained in:
		@@ -375,7 +375,7 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
 | 
			
		||||
                                case FIREBALL:
 | 
			
		||||
                                case DRAGON_FIREBALL:
 | 
			
		||||
                                case DROPPED_ITEM:
 | 
			
		||||
                                    if (Settings.Enabled_Components.KILL_ROAD_ITEMS || plotArea
 | 
			
		||||
                                    if (Settings.Enabled_Components.KILL_ROAD_ITEMS && plotArea
 | 
			
		||||
                                        .getOwnedPlotAbs(
 | 
			
		||||
                                            BukkitUtil.getLocation(entity.getLocation())) == null) {
 | 
			
		||||
                                        entity.remove();
 | 
			
		||||
@@ -386,7 +386,7 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
 | 
			
		||||
                                case FALLING_BLOCK:
 | 
			
		||||
                                    // managed elsewhere
 | 
			
		||||
                                    continue;
 | 
			
		||||
                                case SHULKER: {
 | 
			
		||||
                                case SHULKER:
 | 
			
		||||
                                    if (Settings.Enabled_Components.KILL_ROAD_MOBS) {
 | 
			
		||||
                                        LivingEntity livingEntity = (LivingEntity) entity;
 | 
			
		||||
                                        List<MetadataValue> meta = entity.getMetadata("plot");
 | 
			
		||||
@@ -436,7 +436,6 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
 | 
			
		||||
                                        }
 | 
			
		||||
                                    }
 | 
			
		||||
                                    continue;
 | 
			
		||||
                                }
 | 
			
		||||
                                case LLAMA:
 | 
			
		||||
                                case DONKEY:
 | 
			
		||||
                                case MULE:
 | 
			
		||||
 
 | 
			
		||||
@@ -1876,11 +1876,15 @@ import java.util.regex.Pattern;
 | 
			
		||||
                        eventType = PlayerBlockEventType.TELEPORT_OBJECT;
 | 
			
		||||
                        break;
 | 
			
		||||
                    default:
 | 
			
		||||
                        int blockId = ((LegacyPlotBlock) PlotSquared.get().IMP.getLegacyMappings()
 | 
			
		||||
                            .fromStringToLegacy(blockType.name())).id;
 | 
			
		||||
                        LegacyPlotBlock legacyPlotBlock =
 | 
			
		||||
                            (LegacyPlotBlock) PlotSquared.get().IMP.getLegacyMappings()
 | 
			
		||||
                                .fromStringToLegacy(blockType.name());
 | 
			
		||||
                        if (legacyPlotBlock != null) {
 | 
			
		||||
                            int blockId = legacyPlotBlock.id;
 | 
			
		||||
                            if (blockId > 197) {
 | 
			
		||||
                                eventType = PlayerBlockEventType.INTERACT_BLOCK;
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                        break;
 | 
			
		||||
                }
 | 
			
		||||
                lb = new BukkitLazyBlock(PlotBlock.get(block.getType().toString()));
 | 
			
		||||
 
 | 
			
		||||
@@ -351,7 +351,7 @@ import java.util.concurrent.atomic.AtomicInteger;
 | 
			
		||||
                            task.set(statement);
 | 
			
		||||
                            task.addBatch(statement);
 | 
			
		||||
                            try {
 | 
			
		||||
                                if (statement.isClosed()) {
 | 
			
		||||
                                if (statement != null && statement.isClosed()) {
 | 
			
		||||
                                    statement = null;
 | 
			
		||||
                                }
 | 
			
		||||
                            } catch (AbstractMethodError ignore) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user