Deleting a Map from NMS resulted in unsupported #282
Labels
No labels
documentation
good first issue
help wanted
resolution: duplicate
resolution: invalid
resolution: won't fix
status: needs triage
type: bug
type: feature
type: performance
type: question
version: 1.19.4
version: 1.20
version: 1.20.1
version: 1.20.2
version: 1.20.4
version: 1.20.6
version: 1.21.11
version: 1.21.4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Minecraft/Folia#282
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected behavior
Citizens plugin's NPCs of type Player cannot be displayed
Observed/Actual behavior
Citizens plugin's NPCs of type Player cannot be displayed
Steps/models to reproduce
picture: has Int2ObjectMap K
but in folia there didnt have Int2ObjectMap K
but Citizens plugin need it
how can I do to fix it
Citizens code:
@Override
public EntityPacketTracker getPacketTracker(org.bukkit.entity.Entity entity) {
ServerLevel server = (ServerLevel) getHandle(entity).level();
TrackedEntity entry = server.getChunkSource().chunkMap.entityMap.get(entity.getEntityId());
if (entry == null)
return null;
return new EntityPacketTracker() {
@Override
public void link(Player player) {
entry.updatePlayer((ServerPlayer) getHandle(player));
}
the entityMap is K
Plugin and Datapack List
Citizens
Folia version
1.20.4
Other
No response
Please do not download the above file.
ik, ty
Folia has to make a lot of changes internally to work properly and safely, re-adding that map is not possible. Plugins have to adapt to folia, not the other way around.