Removed generic type from the world.playerEntities list in VanillaPacketDispatcher with hopes to please some mod's dumb ASM nonsense.

This commit is contained in:
Lizbeth Rika committed 2015-04-12 14:18:52 +01:00
1 parent 9ae4edd963
commit b82b25044c
2 files changed
+8 -5

No files matched your search

@@ -22,10 +22,13 @@ public final class VanillaPacketDispatcher {
public static void dispatchTEToNearbyPlayers(TileEntity tile) {
World world = tile.getWorldObj();
List<EntityPlayer> players = world.playerEntities;
for(EntityPlayer player : players)
if(MathHelper.pointDistancePlane(player.posX, player.posZ, tile.xCoord + 0.5, tile.zCoord + 0.5) < 64 && player instanceof EntityPlayerMP)
((EntityPlayerMP) player).playerNetServerHandler.sendPacket(tile.getDescriptionPacket());
List players = world.playerEntities;
for(Object player : players)
if(player instanceof EntityPlayerMP) {
EntityPlayerMP mp = (EntityPlayerMP) player;
if(MathHelper.pointDistancePlane(mp.posX, mp.posZ, tile.xCoord + 0.5, tile.zCoord + 0.5) < 64)
((EntityPlayerMP) player).playerNetServerHandler.sendPacket(tile.getDescriptionPacket());
}
}
public static void dispatchTEToNearbyPlayers(World world, int x, int y, int z) {
@@ -1,4 +1,4 @@
@API(owner = "Botania", apiVersion = "38", provides = "BotaniaAPI")
@API(owner = "Botania", apiVersion = "39", provides = "BotaniaAPI")
package vazkii.botania.api;
import cpw.mods.fml.common.API;