mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
纠正引用源
This commit is contained in:
@@ -3475,6 +3475,7 @@ public class BukkitNetworkManager implements NetworkManager, Listener, PluginMes
|
|||||||
@Override
|
@Override
|
||||||
public void onPacketReceive(NetWorkUser user, ByteBufPacketEvent event) {
|
public void onPacketReceive(NetWorkUser user, ByteBufPacketEvent event) {
|
||||||
if (Config.disableItemOperations()) return;
|
if (Config.disableItemOperations()) return;
|
||||||
|
if (!VersionHelper.PREMIUM && !Config.interceptItem()) return;
|
||||||
FriendlyByteBuf buf = event.getBuffer();
|
FriendlyByteBuf buf = event.getBuffer();
|
||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
Object friendlyBuf = FastNMS.INSTANCE.constructor$FriendlyByteBuf(buf.source());
|
Object friendlyBuf = FastNMS.INSTANCE.constructor$FriendlyByteBuf(buf.source());
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* This implementation references the BlockEntityTickersList implementation by Winds Studio,
|
* This implementation references the BlockEntityTickersList implementation by SparklyPaper,
|
||||||
* available at: https://github.com/Winds-Studio/Leaf/blob/b9ebff/leaf-server/src/main/java/org/dreeam/leaf/util/list/BlockEntityTickersList.java
|
* available at: https://github.com/SparklyPower/SparklyPaper/blob/ver/1.21.10/sparklypaper-server/src/main/java/net/sparklypower/sparklypaper/BlockEntityTickersList.java
|
||||||
* <p>
|
|
||||||
* This work is licensed under the GNU General Public License v3.0 (GPLv3)
|
|
||||||
*/
|
*/
|
||||||
package net.momirealms.craftengine.core.util;
|
package net.momirealms.craftengine.core.util;
|
||||||
|
|
||||||
@@ -23,7 +21,6 @@ import java.util.Collection;
|
|||||||
* since we don't need to resize the array every single remove.
|
* since we don't need to resize the array every single remove.
|
||||||
*/
|
*/
|
||||||
public final class BlockEntityTickersList extends ObjectArrayList<TickingBlockEntity> {
|
public final class BlockEntityTickersList extends ObjectArrayList<TickingBlockEntity> {
|
||||||
|
|
||||||
private final IntOpenHashSet toRemove = new IntOpenHashSet();
|
private final IntOpenHashSet toRemove = new IntOpenHashSet();
|
||||||
private int startSearchFromIndex = -1;
|
private int startSearchFromIndex = -1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user