Apply some lost changes to RC
This commit is contained in:
parent
ec5ce65a3d
commit
8591baf420
3 changed files with 3 additions and 3 deletions
|
@ -109,7 +109,7 @@ public class RebornCore implements ModInitializer {
|
|||
RebornCoreTags.WATER_EXPLOSION_ITEM.toString();
|
||||
|
||||
/* register UnloadHandler */
|
||||
ServerBlockEntityEvents.BLOCK_ENTITY_LOAD.register((blockEntity, world) -> {
|
||||
ServerBlockEntityEvents.BLOCK_ENTITY_UNLOAD.register((blockEntity, world) -> {
|
||||
if (blockEntity instanceof UnloadHandler) ((UnloadHandler) blockEntity).onUnload();
|
||||
});
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ public class RebornCoreClient implements ClientModInitializer {
|
|||
ItemTooltipCallback.EVENT.register(new StackToolTipHandler());
|
||||
|
||||
/* register UnloadHandler */
|
||||
ClientBlockEntityEvents.BLOCK_ENTITY_LOAD.register((blockEntity, world) -> {
|
||||
ClientBlockEntityEvents.BLOCK_ENTITY_UNLOAD.register((blockEntity, world) -> {
|
||||
if (blockEntity instanceof UnloadHandler) ((UnloadHandler) blockEntity).onUnload();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ public class StackToolTipHandler implements ItemTooltipCallback {
|
|||
tooltipLines.add(1, line1);
|
||||
|
||||
if (Screen.hasShiftDown()) {
|
||||
int percentage = percentage(Energy.of(itemStack).getMaxStored(), Energy.of(itemStack).getEnergy());
|
||||
int percentage = percentage(Energy.of(itemStack).getEnergy(), Energy.of(itemStack).getMaxStored());
|
||||
MutableText line2 = StringUtils.getPercentageText(percentage);
|
||||
line2.append(" ");
|
||||
line2.formatted(Formatting.GRAY);
|
||||
|
|
Loading…
Reference in a new issue