mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Fixed the Fallen Kanade being borked.
This commit is contained in:
1 parent
02718045a2
commit
77055c7e2a
1 file changed
+1
-1
@@ -34,7 +34,7 @@ public class SubTileFallenKanade extends SubTileFunctional {
|
||||
List<EntityPlayer> players = supertile.worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(supertile.xCoord - range, supertile.yCoord - range, supertile.zCoord - range, supertile.xCoord + range, supertile.yCoord + range, supertile.zCoord + range));
|
||||
for(EntityPlayer player : players) {
|
||||
if(player.getActivePotionEffect(Potion.regeneration) == null && mana >= cost) {
|
||||
player.addPotionEffect(new PotionEffect(Potion.regeneration.id, 40, 0));
|
||||
player.addPotionEffect(new PotionEffect(Potion.regeneration.id, 100, 1));
|
||||
mana -= cost;
|
||||
PacketDispatcher.sendPacketToAllInDimension(supertile.getDescriptionPacket(), supertile.worldObj.provider.dimensionId);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user