From a2dbae1dedced93b03988ee6d88284072b47674d Mon Sep 17 00:00:00 2001 From: LemADEC Date: Sat, 11 Feb 2017 12:13:50 +0100 Subject: [PATCH] Improved world generation entities rendering --- src/main/java/cr0s/warpdrive/world/EntitySphereGen.java | 9 +++++++++ src/main/java/cr0s/warpdrive/world/EntityStarCore.java | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/src/main/java/cr0s/warpdrive/world/EntitySphereGen.java b/src/main/java/cr0s/warpdrive/world/EntitySphereGen.java index 565018a6..fb62336b 100644 --- a/src/main/java/cr0s/warpdrive/world/EntitySphereGen.java +++ b/src/main/java/cr0s/warpdrive/world/EntitySphereGen.java @@ -227,6 +227,15 @@ public final class EntitySphereGen extends Entity { @Override protected void entityInit() { + noClip = true; + } + + // override to skip the block bounding override on client side + @Override + public void setPositionAndRotation2(double x, double y, double z, float yaw, float pitch, int p_70056_9_) { + // super.setPositionAndRotation2(x, y, z, yaw, pitch, p_70056_9_); + this.setPosition(x, y, z); + this.setRotation(yaw, pitch); } @Override diff --git a/src/main/java/cr0s/warpdrive/world/EntityStarCore.java b/src/main/java/cr0s/warpdrive/world/EntityStarCore.java index 90447c90..9838f062 100644 --- a/src/main/java/cr0s/warpdrive/world/EntityStarCore.java +++ b/src/main/java/cr0s/warpdrive/world/EntityStarCore.java @@ -137,6 +137,15 @@ public final class EntityStarCore extends Entity { @Override protected void entityInit() { + noClip = true; + } + + // override to skip the block bounding override on client side + @Override + public void setPositionAndRotation2(double x, double y, double z, float yaw, float pitch, int p_70056_9_) { + // super.setPositionAndRotation2(x, y, z, yaw, pitch, p_70056_9_); + this.setPosition(x, y, z); + this.setRotation(yaw, pitch); } @Override