Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-16 11:30:06 +01:00
29 Zeilen
1.2 KiB
Diff
29 Zeilen
1.2 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Aikar <aikar@aikar.co>
|
||
|
Date: Wed, 13 Apr 2016 00:30:10 -0400
|
||
|
Subject: [PATCH] Don't tick Skulls - unused code
|
||
|
|
||
|
|
||
|
diff --git a/src/main/java/net/minecraft/world/level/block/entity/SkullBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/SkullBlockEntity.java
|
||
|
index 6a46517e4026971d8c050c685c710883b5976fa3..eebaeaccc3ba1a9ec089d84b8de6c9d36034868f 100644
|
||
|
--- a/src/main/java/net/minecraft/world/level/block/entity/SkullBlockEntity.java
|
||
|
+++ b/src/main/java/net/minecraft/world/level/block/entity/SkullBlockEntity.java
|
||
|
@@ -31,7 +31,7 @@ import net.minecraft.server.MinecraftServer;
|
||
|
import net.minecraft.server.players.GameProfileCache;
|
||
|
import net.minecraft.util.StringUtil;
|
||
|
|
||
|
-public class SkullBlockEntity extends BlockEntity implements TickableBlockEntity {
|
||
|
+public class SkullBlockEntity extends BlockEntity /*implements ITickable*/ { // Paper - remove tickable
|
||
|
|
||
|
@Nullable
|
||
|
private static GameProfileCache profileCache;
|
||
|
@@ -134,7 +134,7 @@ public class SkullBlockEntity extends BlockEntity implements TickableBlockEntity
|
||
|
|
||
|
}
|
||
|
|
||
|
- @Override
|
||
|
+ // Paper - remove override
|
||
|
public void tick() {
|
||
|
BlockState iblockdata = this.getBlockState();
|
||
|
|