CobbleSword / NachoSpigot

NachoSpigot is a fork of TacoSpigot 1.8.9 that offers several enhancements to performance as well as bug fixes.
GNU General Public License v3.0
237 stars 87 forks source link

Fix #204 #275

Closed ghost closed 2 years ago

ghost commented 2 years ago

Description

Please provide a detailed description of the changes you have made.

Fixes/Adds # (issue)

How has this been tested?

How have you tested the changes you have made?

Additional Comments

Provide any additional information regarding this pull request.

Checklist:

andreasdc commented 2 years ago

I already have this in my code.

ghost commented 2 years ago

I already have this in my code.

Then you broke something because this patch prevents the physics update when BlockPlaceEvent is cancelled

andreasdc commented 2 years ago

I already have this in my code.

Then you broke something because this patch prevents the physics update when BlockPlaceEvent is cancelled

I doubt so, probably, but you can test it by yourself.

andreasdc commented 2 years ago

I already have this in my code.

Then you broke something because this patch prevents the physics update when BlockPlaceEvent is cancelled

Placing blocks - yes, placing redstone dust - not. Probably something with PandaRedstoneWire.

ghost commented 2 years ago

I already have this in my code.

Then you broke something because this patch prevents the physics update when BlockPlaceEvent is cancelled

Placing blocks - yes, placing redstone dust - not. Probably something with PandaRedstoneWire.

Based on your logic, redstone dust isn't a block?

Sculas commented 2 years ago

Thank you for this PR! :)

andreasdc commented 2 years ago

I already have this in my code.

Then you broke something because this patch prevents the physics update when BlockPlaceEvent is cancelled

Placing blocks - yes, placing redstone dust - not. Probably something with PandaRedstoneWire.

Based on your logic, redstone dust isn't a block?

Test and then say something. Simple debug when placing redstone dust.

ghost commented 2 years ago

I already have this in my code.

Then you broke something because this patch prevents the physics update when BlockPlaceEvent is cancelled

Placing blocks - yes, placing redstone dust - not. Probably something with PandaRedstoneWire.

Based on your logic, redstone dust isn't a block?

Test and then say something. Simple debug when placing redstone dust.

Do it yourself

Your issue was titled with block place event cancelled calls a physics update, i fixed it.

andreasdc commented 2 years ago

.

When placing redstone dust.

andreasdc commented 2 years ago

I already have this in my code.

Then you broke something because this patch prevents the physics update when BlockPlaceEvent is cancelled

Placing blocks - yes, placing redstone dust - not. Probably something with PandaRedstoneWire.

I already did it.

ghost commented 2 years ago

I already have this in my code.

Then you broke something because this patch prevents the physics update when BlockPlaceEvent is cancelled

Placing blocks - yes, placing redstone dust - not. Probably something with PandaRedstoneWire.

I already did it.

Then fix your own issue since you already did a debug stage, i already fixed the titled issue

andreasdc commented 2 years ago

I already have this in my code.

Then you broke something because this patch prevents the physics update when BlockPlaceEvent is cancelled

Placing blocks - yes, placing redstone dust - not. Probably something with PandaRedstoneWire.

I already did it.

Then fix your own issue since you already did a debug stage, i already fixed the titled issue

Titled, but not described. Don't mark it as a fix for the issue then.

ghost commented 2 years ago

I already have this in my code.

Then you broke something because this patch prevents the physics update when BlockPlaceEvent is cancelled

Placing blocks - yes, placing redstone dust - not. Probably something with PandaRedstoneWire.

I already did it.

Then fix your own issue since you already did a debug stage, i already fixed the titled issue

Titled, but not described. Don't mark it as a fix for the issue then.

Your plugin is wrong made because you need to cancel the BlockRedstoneEvent, i fixed your titled issue, if you do strange things in a plugin or your fork is not my problem

andreasdc commented 2 years ago

I already have this in my code.

Then you broke something because this patch prevents the physics update when BlockPlaceEvent is cancelled

Placing blocks - yes, placing redstone dust - not. Probably something with PandaRedstoneWire.

I already did it.

Then fix your own issue since you already did a debug stage, i already fixed the titled issue

Titled, but not described. Don't mark it as a fix for the issue then.

Your plugin is wrong made because you need to cancel the BlockRedstoneEvent, i fixed your titled issue, if you do strange things in a plugin or your fork is not my problem

Shouldn't cancelled BlockPlaceEvent stop BlockRedstoneEvent?

ghost commented 2 years ago

I already have this in my code.

Then you broke something because this patch prevents the physics update when BlockPlaceEvent is cancelled

Placing blocks - yes, placing redstone dust - not. Probably something with PandaRedstoneWire.

I already did it.

Then fix your own issue since you already did a debug stage, i already fixed the titled issue

Titled, but not described. Don't mark it as a fix for the issue then.

Your plugin is wrong made because you need to cancel the BlockRedstoneEvent, i fixed your titled issue, if you do strange things in a plugin or your fork is not my problem

Shouldn't cancelled BlockPlaceEvent stop BlockRedstoneEvent?

Why a event should cancel another event

andreasdc commented 2 years ago

Why would you pass it to redstone even when block place is cancelled?

ghost commented 2 years ago

Why would you pass it to redstone even when block place is cancelled?

Ask to Mojang & CraftBukkit

andreasdc commented 2 years ago

t

Here we are on NachoSpigot, already correcting Mojang & CraftBukkit's code.

Sculas commented 2 years ago

Remind you; this is vanilla behavior! So even if we changed this, this could break plugins!

andreasdc commented 2 years ago

sad violin music

andreasdc commented 2 years ago

Remind you; this is vanilla behavior! So even if we changed this, this could break plugins!

But plugin based on broken behaviour right? 🥇