mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 19:42:19 +00:00
Various Fixes 🐶
This commit is contained in:
1 parent
12c50d5f6a
commit
3e58013ad6
12 files changed
+268
-10
No files matched your search
@@ -36,6 +36,7 @@ public class EntityEnergyPanel extends EntityEnergyBarrier {
|
||||
protected EnergyPanelData panelData = new EnergyPanelData();
|
||||
protected PanelMode mode = PanelMode.PLACED;
|
||||
protected float panelYaw = 0.0f; // Rotation of the panel face (degrees)
|
||||
protected float prevPanelYaw = 0.0f; // Previous tick yaw for smooth interpolation
|
||||
|
||||
// ==================== CHARGING (panel-specific targets) ====================
|
||||
protected float targetPanelWidth;
|
||||
@@ -54,6 +55,7 @@ public class EntityEnergyPanel extends EntityEnergyBarrier {
|
||||
this.setPosition(x, y + panel.heightOffset, z);
|
||||
this.ownerEntityId = owner.getEntityId();
|
||||
this.panelYaw = yaw;
|
||||
this.prevPanelYaw = yaw;
|
||||
this.mode = mode;
|
||||
this.displayData = display;
|
||||
this.lightningData = lightning;
|
||||
@@ -99,6 +101,7 @@ public class EntityEnergyPanel extends EntityEnergyBarrier {
|
||||
this.prevPosX = this.posX;
|
||||
this.prevPosY = this.posY;
|
||||
this.prevPosZ = this.posZ;
|
||||
this.prevPanelYaw = this.panelYaw;
|
||||
|
||||
super.onUpdate();
|
||||
|
||||
@@ -548,6 +551,10 @@ public class EntityEnergyPanel extends EntityEnergyBarrier {
|
||||
return panelYaw;
|
||||
}
|
||||
|
||||
public float getPrevPanelYaw() {
|
||||
return prevPanelYaw;
|
||||
}
|
||||
|
||||
public EnergyPanelData getPanelData() {
|
||||
return panelData;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user