mirror of
https://github.com/TicTicBoooom-Mods/MasterfulMachinery.git
synced 2026-03-18 21:40:34 +01:00
Rotation output ports now do not attempt to store kinetic speed from inputs. This fixes infinitely speed loops
This commit is contained in:
@@ -53,6 +53,9 @@ public class RotationMachinePortBlockEntity extends KineticTileEntity implements
|
|||||||
public void tick() {
|
public void tick() {
|
||||||
super.tick();
|
super.tick();
|
||||||
this.storage.tick(this);
|
this.storage.tick(this);
|
||||||
|
if (this.storage instanceof RotationPortStorage) {
|
||||||
|
((RotationPortStorage) this.storage).setSpeed(Math.abs(this.getSpeed()));
|
||||||
|
}
|
||||||
|
|
||||||
if (!world.isRemote()) {
|
if (!world.isRemote()) {
|
||||||
PacketHandler.INSTANCE.send(PacketDistributor.ALL.noArg(), new TileClientUpdatePacket.Data(pos, write(new CompoundNBT())));
|
PacketHandler.INSTANCE.send(PacketDistributor.ALL.noArg(), new TileClientUpdatePacket.Data(pos, write(new CompoundNBT())));
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ public class RotationPortStorage extends PortStorage {
|
|||||||
public void tick(IMachinePortTile tile) {
|
public void tick(IMachinePortTile tile) {
|
||||||
KineticTileEntity kinetic = tile.getTile();
|
KineticTileEntity kinetic = tile.getTile();
|
||||||
this.isOverStressed = kinetic.isOverStressed();
|
this.isOverStressed = kinetic.isOverStressed();
|
||||||
this.speed = Math.abs(kinetic.getSpeed());
|
//this.speed = Math.abs(kinetic.getSpeed());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
#Tue Jul 12 14:00:21 BST 2022
|
#Tue Jul 12 14:38:10 BST 2022
|
||||||
VERSION_CODE=972
|
VERSION_CODE=974
|
||||||
|
|||||||
Reference in New Issue
Block a user