mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Fixed really dumb copy bug breaking crafting
This commit is contained in:
@ -140,7 +140,7 @@ class PacketPool{
|
||||
* @return DataPacket
|
||||
*/
|
||||
public static function getPacketById(int $pid) : DataPacket{
|
||||
return static::$pool[$pid] ?? new UnknownPacket();
|
||||
return isset(static::$pool[$pid]) ? clone static::$pool[$pid] : new UnknownPacket();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user