mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-02-24 15:00:48 +00:00
Fix renaming hook again
Turns out, there's a bug in Forge and the stacks are misassigned for that particular event
This commit is contained in:
parent
cf26eac2c9
commit
5fe26d5647
@ -1254,8 +1254,9 @@ public class ModEventHandler {
|
|||||||
public void onAnvilRepair(AnvilRepairEvent event) {
|
public void onAnvilRepair(AnvilRepairEvent event) {
|
||||||
|
|
||||||
// Anvil renaming no longer increments the repair cost
|
// Anvil renaming no longer increments the repair cost
|
||||||
|
// Note: Forge has a bug, the names are wrong. Right is output, output is left, left is right
|
||||||
if(event.left == null && event.right != null && event.output != null) {
|
if(event.left == null && event.right != null && event.output != null) {
|
||||||
event.output.setRepairCost(event.right.getRepairCost());
|
event.right.setRepairCost(event.output.getRepairCost());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user