mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-29 01:37:20 +01:00
EntityTeleportEvent#setTo is marked as nullable and so is the getTo method. This fixes the handling of a null "to" location by treating it the same as the event being cancelled. This is already existing behavior for the EntityPortalEvent (which extends EntityTeleportEvent). |
||
---|---|---|
.. | ||
damagesource | ||
effect | ||
entity | ||
food | ||
inventory | ||
item | ||
level | ||
scores | ||
BossEvent.java.patch | ||
CompoundContainer.java.patch | ||
Container.java.patch | ||
RandomizableContainer.java.patch | ||
SimpleContainer.java.patch |