This repository has been archived by the owner on May 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Steam Chisel doesn't fill in the Steam Filler #20
Comments
I have nothing to add about the GUI, but the filler not working is something I've noticed as well. The relevant code from FSP appears to be this: if (this.getSteamShare() > 0 && stack.getItemDamage() > 0) {
if (!this.isCharging) {
//Steamcraft.log.debug("Charging");
this.isCharging = true;
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
} else {
if (this.isCharging) {
//Steamcraft.log.debug("Not charging");
this.isCharging = false;
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
}
if (this.getSteamShare() > item.steamPerDurability() && stack.getItemDamage() > 0) {
int i = 0;
while (i < 4 && (this.getSteamShare() > item.steamPerDurability() && stack.getItemDamage() > 0)) {
this.decrSteam(item.steamPerDurability());
stack.setItemDamage(stack.getItemDamage() - 1);
this.setInventorySlotContents(0, stack);
i++;
}
float currentPerc = getChargingPercent(stack);
if (prevPercent != currentPerc && Math.abs(prevPercent - currentPerc) > 0.01) {
//log.debug("New percent: "+currentPerc);
prevPercent = currentPerc;
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
} which means the FSP charger is directly messing with the durability of the item in question. Since the steam chisel sets max durability with |
Nixed the Steam Chisel. For now at least. |
Fair enough, that API is bizarre. |
It's also filled with internal calls. You can't use the API without a deobf copy of the mod in your workspace. no me gusta |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Additionally, right clicking the steam filler with the chisel causes an NPE. Seems it's trying to open the GUI.
The text was updated successfully, but these errors were encountered: