You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create a new block using a new Java interface that I built called SimpleBlockUtil.java. In this code, I have the following line:
block.components.add(new ItemRenderer(block));
I know that this is deprecated, but was told by Henry to use it anyway.
It works fine (in creating the item in the inventory, and when you throw the block), however I came across a weird bug when I try to teleport down into two of my custom blocks stacked on top of each other.
For example:
ME
CUSTOMBLOCK
CUSTOMBLOCK
Then I run: /tp PLAYERNAME ~ ~-2 ~
and I get the following error:
java.lang.NullPointerException: Unexpected error
at net.minecraft.client.renderer.ItemRenderer.func_178108_a(ItemRenderer.java:414)
at net.minecraft.client.renderer.ItemRenderer.renderOverlays(ItemRenderer.java:381)
at net.minecraft.client.renderer.EntityRenderer.renderHand(EntityRenderer.java:769)
at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1408)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1210)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1035)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1055)
at net.minecraft.client.Minecraft.run(Minecraft.java:345)
at net.minecraft.client.main.Main.main(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
When I try: /tp PLAYERNAME ~ ~-1 ~
I get no error and it works.
When I try: /tp PLAYERNAME ~ ~-2 ~
and I'm on top of two grass blocks, it works fine.
The text was updated successfully, but these errors were encountered:
I create a new block using a new Java interface that I built called SimpleBlockUtil.java. In this code, I have the following line:
block.components.add(new ItemRenderer(block));
I know that this is deprecated, but was told by Henry to use it anyway.
It works fine (in creating the item in the inventory, and when you throw the block), however I came across a weird bug when I try to teleport down into two of my custom blocks stacked on top of each other.
For example:
ME
CUSTOMBLOCK
CUSTOMBLOCK
Then I run:
/tp PLAYERNAME ~ ~-2 ~
and I get the following error:
When I try:
/tp PLAYERNAME ~ ~-1 ~
I get no error and it works.
When I try:
/tp PLAYERNAME ~ ~-2 ~
and I'm on top of two grass blocks, it works fine.
The text was updated successfully, but these errors were encountered: