Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复错误的合并问题 #1022

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/src/main/resources/anvilcraft.accesswidener
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ accessible method net/minecraft/world/level/block/Blocks never (Lnet/minecraft/w
accessible method net/minecraft/util/SortedArraySet findIndex (Ljava/lang/Object;)I
accessible method net/minecraft/util/SortedArraySet getInternal (I)Ljava/lang/Object;
accessible field net/minecraft/world/entity/item/FallingBlockEntity blockState Lnet/minecraft/world/level/block/state/BlockState;
accessible method net/minecraft/world/item/BlockItem canPlace (Lnet/minecraft/world/item/context/BlockPlaceContext;Lnet/minecraft/world/level/block/state/BlockState;)Z
accessible method net/minecraft/world/item/BlockItem canPlace (Lnet/minecraft/world/item/context/BlockPlaceContext;Lnet/minecraft/world/level/block/state/BlockState;)Z
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ public void onInitializeClient() {
});

ItemTooltipCallback.EVENT.register((stack, context, lines) -> TooltipEventListener.addTooltip(stack, lines));
CommonEventHandlerListener.clientInti();
CommonEventHandlerListener.clientInit();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
import net.minecraft.client.multiplayer.ClientPacketListener;

public class CommonEventHandlerListener {
/**
* EVENT
*/
public static void serverInit() {
ServerBlockEntityEvents.BLOCK_ENTITY_LOAD.register(CommonEventHandlerListener::onServerBlockEntityLoad);
ServerBlockEntityEvents.BLOCK_ENTITY_UNLOAD.register(CommonEventHandlerListener::onServerBlockEntityUnload);
}

public static void clientInit() {
ClientPlayConnectionEvents.DISCONNECT.register(CommonEventHandlerListener::onClientPlayerDisconnect);
}

Expand Down
Loading