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

Validate DnD action for FluidSlot on server #23

Merged
merged 3 commits into from
Aug 2, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void draw(GuiContext context, @Nullable ItemStack stack) {
int mouseX = context.getAbsMouseX(), mouseY = context.getAbsMouseY();
IconRenderer renderer = IconRenderer.SHARED;
List<String> textLines = lines.stream().filter(drawable -> drawable instanceof IKey).map(key -> ((IKey) key).get()).collect(Collectors.toList());
RenderTooltipEvent.Pre event = new RenderTooltipEvent.Pre(stack, textLines, mouseX, mouseY, screen.width, screen.height, thimaxWidth, TextRenderer.getFontRenderer());
RenderTooltipEvent.Pre event = new RenderTooltipEvent.Pre(stack, textLines, mouseX, mouseY, screen.width, screen.height, this.maxWidth, TextRenderer.getFontRenderer());
if (MinecraftForge.EVENT_BUS.post(event)) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ public void readOnClient(int id, PacketBuffer buf) {
@Override
public void readOnServer(int id, PacketBuffer buf) {
if (id == 0) {
read(buf);
if (this.phantom) {
read(buf);
brachy84 marked this conversation as resolved.
Show resolved Hide resolved
}
} else if (id == 1) {
if (this.phantom) {
tryClickPhantom(MouseData.readPacket(buf));
Expand Down