Skip to content

Commit

Permalink
Minor renderer + keybinding fixes (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursivePineapple authored Jan 24, 2025
1 parent da08422 commit 5f430a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void onKeyPressed(KeyInputEvent event) {

MMState state = ItemMatterManipulator.getState(held);

if (CONTROL.getKeyCode() == 0 && !CONTROL.getIsKeyPressed()) return;
if (CONTROL.getKeyCode() != 0 && !CONTROL.getIsKeyPressed()) return;

if (CUT.isPressed()) {
if (state.config.placeMode != PlaceMode.MOVING) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
import it.unimi.dsi.fastutil.longs.LongList;
import it.unimi.dsi.fastutil.longs.LongOpenHashSet;

@EventBusSubscriber
@EventBusSubscriber(side = Side.CLIENT)
public class MMRenderer {

private static long lastAnalysisMS = 0;
Expand Down Expand Up @@ -180,7 +180,7 @@ private static void clear(EntityPlayer player) {
}

@SubscribeEvent
private static void checkPlayerStoppedBuilding(PlayerTickEvent event) {
public static void checkPlayerStoppedBuilding(PlayerTickEvent event) {
if (event.side != Side.CLIENT) return;
if (event.phase != Phase.END) return;
if (event.type != Type.PLAYER) return;
Expand Down

0 comments on commit 5f430a7

Please sign in to comment.