Skip to content

Commit

Permalink
2.7.1 Entity rendering log spam hotfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mysteryem committed Apr 25, 2017
1 parent b2c02d0 commit cb75759
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ plugins {
id "net.minecraftforge.gradle.forge" version "2.0.2"
}
*/
version = "2.7"
version = "2.7.1"
group= "uk.co.mysterymayhem.gravitymod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "UpAndDownAndAllAround"
targetCompatibility = "1.8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class GravityMod {
private static final int MINOR_VERSION = 7;
// Indicates a non-breaking change in the mod
// Different patch numbers but the same major and minor version should be compatible with one another
private static final int PATCH_NUMBER = 0;
private static final int PATCH_NUMBER = 1;

// M.m.p
public static final String VERSION = "" + MAJOR_VERSION + '.' + MINOR_VERSION + '.' + PATCH_NUMBER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import net.minecraft.util.math.Vec3i;
import net.minecraftforge.client.event.RenderLivingEvent;
import net.minecraftforge.client.event.RenderPlayerEvent;
import net.minecraftforge.fml.common.FMLLog;
import net.minecraftforge.fml.common.eventhandler.EventPriority;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.relauncher.Side;
Expand Down Expand Up @@ -78,8 +77,8 @@ public static void onRender(RenderPlayerEvent.Pre event) {
EntityPlayer player = event.getEntityPlayer();
AxisAlignedBB entityBoundingBox = player.getEntityBoundingBox();
if (!(entityBoundingBox instanceof GravityAxisAlignedBB)) {
//Not good
FMLLog.bigWarning("Tried rendering player %s, but their bounding box was not a GravityAxisAlignedBB", player.getName());
// Either this mod is completely non-functional for some reason, or another mod has extended EntityPlayer and overridden the methods that set up
// bounding boxes
return;
}
GravityAxisAlignedBB gAABB = (GravityAxisAlignedBB)entityBoundingBox;
Expand Down

0 comments on commit cb75759

Please sign in to comment.