Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGreyGhost committed Aug 25, 2020
1 parent 2a049be commit 30d6895
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ public ItemModelFlexibleCamera(IBakedModel i_modelToWrap, UpdateLink linkToCurre
updateLink = linkToCurrentInformation;
}

@Nonnull
@Override
public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, Random rand) {
return super.getQuads(state, side, rand, EmptyModelData.INSTANCE);
}

@Override
public ItemCameraTransforms getItemCameraTransforms() {
return (updateLink.itemModelToOverride == this) ? updateLink.forcedTransform : originalModel.getItemCameraTransforms();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.TickEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.lwjgl.glfw.GLFW;

import java.util.Locale;
Expand Down Expand Up @@ -162,8 +164,8 @@ private void alterField(boolean increase) {
output.append(",\n");
printTransform(output, "ground", linkToHUDrenderer.itemCameraTransforms.ground);
output.append("\n}");
System.out.println(output);
StringTextComponent text = new StringTextComponent(" \"display\" JSON section printed to console...");
LOGGER.info(output);
StringTextComponent text = new StringTextComponent(" \"display\" JSON section printed to console (LOGGER.info)...");
Minecraft.getInstance().ingameGUI.getChatGUI().printChatMessage(text);
break;
}
Expand Down Expand Up @@ -293,4 +295,5 @@ public enum ArrowKeys {NONE, UP, DOWN, LEFT, RIGHT}
private ArrowKeys lastKey = ArrowKeys.NONE;
private KeyPressCallback keyPressCallback;
}
private static final Logger LOGGER = LogManager.getLogger();
}

0 comments on commit 30d6895

Please sign in to comment.