diff --git a/Change Log.txt b/Change Log.txt index bb9baf5d..1ebabc7c 100644 --- a/Change Log.txt +++ b/Change Log.txt @@ -1,3 +1,14 @@ +######## 1.0.2f ######## +-fixed shield sound effect being too loud. + +######## 1.0.2e ######## +-damage that bypasses armor now deals double damage and increased entropy to the shield. +-fake players should now be able to mine draconium ore, infused obsidian and both draconium blocks. +-fixed crash involving the bedrock sword compatibility code. +-attempted to fix a rendering bug with the energy transceivers (may or may not be fixed now). +-hopefully fixed issue with Armourers-Workshop not being able to make the draconic armor invisible. +-fixed flight sometimes not being disabled when draconic chestplate is removed. + ######## 1.0.2d ######## -added config option to disable all log output -stopped potential console spam from chaos guardian. diff --git a/VERSION.txt b/VERSION.txt index 641419d5..307c49f2 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1,3 +1,3 @@ -Version:1.0.2d +Version:1.0.2e Snapshot:0 -ReleaseNote:Minor changes. +ReleaseNote: diff --git a/build.properties b/build.properties index 1c3e5e6a..361672ba 100644 --- a/build.properties +++ b/build.properties @@ -1,5 +1,5 @@ minecraft_version=1.7.10 -mod_version=1.0.2d +mod_version=1.0.2e forge_version=10.13.4.1614-1.7.10 CCLIB_version=1.1.3.140 NEI_version=1.0.3.74 diff --git a/src/main/java/com/brandon3055/draconicevolution/client/handler/ClientEventHandler.java b/src/main/java/com/brandon3055/draconicevolution/client/handler/ClientEventHandler.java index faabf460..e9efc7c2 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/handler/ClientEventHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/handler/ClientEventHandler.java @@ -162,7 +162,7 @@ public class ClientEventHandler { @SubscribeEvent public void renderArmorEvent(RenderPlayerEvent.SetArmorModel event) { - if (ConfigHandler.useOriginal3DArmorModel || ConfigHandler.useOldArmorModel) return; + if (ConfigHandler.useOriginal3DArmorModel || ConfigHandler.useOldArmorModel || event.isCanceled()) return; if (event.stack != null && (event.stack.getItem() instanceof DraconicArmor || event.stack.getItem() instanceof WyvernArmor)) { ItemArmor itemarmor = (ItemArmor)event.stack.getItem(); diff --git a/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileCrystal.java b/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileCrystal.java index cd6521b7..9d3afe54 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileCrystal.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/render/tile/RenderTileCrystal.java @@ -82,6 +82,7 @@ public class RenderTileCrystal extends TileEntitySpecialRenderer { //--- Post Render ---// + GL11.glAlphaFunc(GL11.GL_GREATER, 0.1f); GL11.glDisable(GL11.GL_BLEND); RenderHelper.enableStandardItemLighting(); GL11.glPopMatrix(); @@ -154,6 +155,7 @@ public class RenderTileCrystal extends TileEntitySpecialRenderer { GL11.glDisable(GL11.GL_BLEND); // RenderHelper.enableStandardItemLighting(); GL11.glEnable(GL11.GL_LIGHTING); + GL11.glEnable(GL11.GL_ALPHA_TEST); GL11.glAlphaFunc(GL11.GL_GREATER, 0.1f); GL11.glPopMatrix(); } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconicBlock.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconicBlock.java index a147b170..70279295 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconicBlock.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconicBlock.java @@ -6,6 +6,7 @@ import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.lib.Strings; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; +import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.IIcon; import net.minecraft.world.Explosion; import net.minecraft.world.IBlockAccess; @@ -27,7 +28,7 @@ public class DraconicBlock extends BlockDE { @Override public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) { - return false; + return entity instanceof EntityPlayer; } @Override diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumBlock.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumBlock.java index 6fa76836..d4bf9e05 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumBlock.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumBlock.java @@ -41,7 +41,7 @@ public class DraconiumBlock extends BlockDE { @Override public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) { - return false; + return entity instanceof EntityPlayer; } @Override diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumOre.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumOre.java index 4af2f1f7..ccd0a5d0 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumOre.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumOre.java @@ -11,6 +11,7 @@ import net.minecraft.block.material.Material; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; +import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; @@ -36,7 +37,7 @@ public class DraconiumOre extends BlockDE { @Override public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) { - return false; + return entity instanceof EntityPlayer; } @Override diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/InfusedObsidian.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/InfusedObsidian.java index e2881eba..97a202fe 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/InfusedObsidian.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/InfusedObsidian.java @@ -44,7 +44,7 @@ public class InfusedObsidian extends BlockDE { @Override public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) { - return false; + return entity instanceof EntityPlayer; } @Override diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/CustomArmorHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/CustomArmorHandler.java index 54869796..9fea9af6 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/CustomArmorHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/CustomArmorHandler.java @@ -119,7 +119,7 @@ public class CustomArmorHandler { if (summery.protectionPoints > 0){ DraconicEvolution.network.sendToAllAround(new ShieldHitPacket(player, summery.protectionPoints / summery.maxProtectionPoints), new NetworkRegistry.TargetPoint(player.dimension, player.posX, player.posY, player.posZ, 64)); - player.worldObj.playSoundEffect(player.posX + 0.5D, player.posY + 0.5D, player.posZ + 0.5D, "draconicevolution:shieldStrike", 10.0F, player.worldObj.rand.nextFloat() * 0.1F + 1.055F); + player.worldObj.playSoundEffect(player.posX + 0.5D, player.posY + 0.5D, player.posZ + 0.5D, "draconicevolution:shieldStrike", 0.9F, player.worldObj.rand.nextFloat() * 0.1F + 1.055F); } if (remainingPoints > 0) { @@ -140,10 +140,10 @@ public class CustomArmorHandler { if (summery == null || event.source == ADMIN_KILL) return; - if (summery.protectionPoints > 20){ + if (summery.protectionPoints > 500){ event.setCanceled(true); event.entityLiving.setHealth(10); - LogHelper.warn("Something is trying to bypass the draconic shield. [Culprit: {Damage Type=" + event.source.damageType + ", Damage Class=" + event.source.toString() + "]"); + // LogHelper.warn("Something is trying to bypass the draconic shield. [Culprit: {Damage Type=" + event.source.damageType + ", Damage Class=" + event.source.toString() + "]"); return; } @@ -237,7 +237,6 @@ public class CustomArmorHandler { } } else { - if (!playersWithFlight.containsKey(player)) { playersWithFlight.put(player, false); } @@ -249,11 +248,15 @@ public class CustomArmorHandler { player.capabilities.allowFlying = false; player.capabilities.isFlying = false; player.sendPlayerAbilities(); + LogHelper.info("Send Disable"); } } if (player.worldObj.isRemote && playersWithFlight.get(player)){ playersWithFlight.put(player, false); + player.capabilities.allowFlying = false; + player.capabilities.isFlying = false; + LogHelper.info("Put Client"); setPlayerFlySpeed(player, 0.05F); } } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java index 0ded6769..d03db854 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java @@ -5,7 +5,7 @@ package com.brandon3055.draconicevolution.common.lib; */ public class VersionHandler { - public static final String VERSION = "1.0.2d"; + public static final String VERSION = "1.0.2e"; public static final int SNAPSHOT = 0; public static final String MCVERSION = "1.7.10"; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnergyPylon.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnergyPylon.java index 1b11f0a3..e227dd8f 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnergyPylon.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnergyPylon.java @@ -252,7 +252,7 @@ public class TileEnergyPylon extends TileObjectSync implements IEnergyHandler, I public Packet getDescriptionPacket(){ NBTTagCompound nbttagcompound = new NBTTagCompound(); writeToNBT(nbttagcompound); - return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, nbttagcompound); + return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, nbttagcompound); } @Override diff --git a/src/main/java/com/brandon3055/draconicevolution/integration/ModHelper.java b/src/main/java/com/brandon3055/draconicevolution/integration/ModHelper.java index ae49c622..0edec404 100644 --- a/src/main/java/com/brandon3055/draconicevolution/integration/ModHelper.java +++ b/src/main/java/com/brandon3055/draconicevolution/integration/ModHelper.java @@ -47,6 +47,7 @@ public class ModHelper { } public static float applyModDamageAdjustments(ArmorSummery summery, LivingAttackEvent event){ + if (summery == null) return event.ammount; EntityPlayer attacker = event.source.getEntity() instanceof EntityPlayer ? (EntityPlayer) event.source.getEntity() : null; if (attacker == null){ @@ -57,8 +58,7 @@ public class ModHelper { event.entityLiving.hurtResistantTime = 0; return 300F; } - - if (isHoldingBedrockSword(attacker)){ + else if (isHoldingBedrockSword(attacker)){ summery.entropy += 10; if (summery.entropy > 100){ @@ -67,6 +67,15 @@ public class ModHelper { return Math.max(event.ammount, Math.min(50F, summery.protectionPoints)); } + else if (event.source.isUnblockable() || event.source.canHarmInCreative()){ + summery.entropy += 3; + + if (summery.entropy > 100){ + summery.entropy = 100; + } + + return event.ammount * 2; + } return event.ammount; }