1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

temporarily diable senstive blocks check (#4077)

Co-authored-by: Daniel Walsh <walshydev@gmail.com>
This commit is contained in:
J3fftw 2024-01-03 20:12:45 +01:00 committed by GitHub
parent 4d710fa0b1
commit e33950383c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -303,8 +303,11 @@ public class BlockListener implements Listener {
* @param count * @param count
* The amount of times this has been recursively called * The amount of times this has been recursively called
*/ */
// Disabled for now due to #4069 - Servers crashing due to this check
// There is additionally a second bug with `getMaxChainedNeighborUpdates` not existing in 1.17
@ParametersAreNonnullByDefault @ParametersAreNonnullByDefault
private void checkForSensitiveBlocks(Block block, Integer count, boolean isDropItems) { private void checkForSensitiveBlocks(Block block, Integer count, boolean isDropItems) {
/*
if (count >= Bukkit.getServer().getMaxChainedNeighborUpdates()) { if (count >= Bukkit.getServer().getMaxChainedNeighborUpdates()) {
return; return;
} }
@ -326,6 +329,7 @@ public class BlockListener implements Listener {
// Set the BlockData back: this makes it so containers and spawners drop correctly. This is a hacky fix. // Set the BlockData back: this makes it so containers and spawners drop correctly. This is a hacky fix.
block.setBlockData(state.getBlockData(), false); block.setBlockData(state.getBlockData(), false);
state.update(true, false); state.update(true, false);
*/
} }
/** /**