mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 08:29:05 +00:00
==STILL SLIGHTLY BUGGED==
Scripted blocks now render exactly like regular blocks in the world.
This commit is contained in:
1 parent
55cd639124
commit
0d9a26c58c
3 files changed
+58
-12
No files matched your search
@@ -25,6 +25,8 @@ import noppes.npcs.constants.EnumGuiType;
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockScripted extends BlockContainer {
|
||||
|
||||
public int renderId = -1;
|
||||
public static final AxisAlignedBB AABB = AxisAlignedBB.getBoundingBox(0.001f, 0.001f, 0.001f, 0.998f, 0.998f, 0.998f);
|
||||
public static final AxisAlignedBB AABB_EMPTY = AxisAlignedBB.getBoundingBox(0, 0, 0, 0, 0, 0);
|
||||
|
||||
@@ -109,12 +111,12 @@ public class BlockScripted extends BlockContainer {
|
||||
|
||||
@Override
|
||||
public boolean canRenderInPass(int pass) {
|
||||
return false;
|
||||
return super.canRenderInPass(pass);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderType() {
|
||||
return 0;
|
||||
return renderId;
|
||||
}
|
||||
@Override
|
||||
public boolean isOpaqueCube() {
|
||||
|
||||
Reference in new issue
Block a user