mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-31 01:23:44 +01:00 
			
		
		
		
	| @@ -51,6 +51,9 @@ public class PlotInventory { | ||||
|     } | ||||
|      | ||||
|     public PlotItemStack getItem(int index) { | ||||
|         if (index < 0 || index >= items.length) { | ||||
|             return null; | ||||
|         } | ||||
|         return items[index]; | ||||
|     } | ||||
|      | ||||
|   | ||||
| @@ -913,6 +913,8 @@ public class BukkitChunkManager extends ChunkManager { | ||||
|         final int tz = pos2.getZ(); | ||||
|         for (final Entity entity : entities) { | ||||
|             if (entity instanceof Player) { | ||||
|                 org.bukkit.Location loc = entity.getLocation(); | ||||
|                 if (loc.getX() >= bx && loc.getX() <= tx && loc.getZ() >= bz && loc.getZ() <= tz) { | ||||
|                     final Player player = (Player) entity; | ||||
|                     final PlotPlayer pp = BukkitUtil.getPlayer(player); | ||||
|                     Plot plot = pp.getCurrentPlot(); | ||||
| @@ -923,6 +925,7 @@ public class BukkitChunkManager extends ChunkManager { | ||||
|                         } | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|             else { | ||||
|                 org.bukkit.Location loc = entity.getLocation(); | ||||
|                 if (loc.getX() >= bx && loc.getX() <= tx && loc.getZ() >= bz && loc.getZ() <= tz) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 boy0001
					boy0001