1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-10 17:30:29 +00:00
CC-Tweaked/src/main/java/dan200/computercraft
SquidDev 737b3cb576 Don't use capabilities for generic peripherals
Maybe the capability system was a mistake in retrospect, as we don't
store the peripheral outside, so there's no way to reuse it. That will
probably come in a later change.

As a smaller fix, we pass the invalidate listener directly. The lifetime
of this is the same as the computer, so we don't create a new one each
time.

There's still the potential to leak memory if people break/replace a
computer (as listeners aren't removed), but that's an unavoidable flaw
with capabilities.

Fixes #593
2020-12-10 19:05:44 +00:00
..
api Fix players not getting advancements when they own turtles 2020-10-31 10:59:24 +00:00
client Draw in-hand pocket computers with blending 2020-11-01 11:12:28 +00:00
core Allow $private HTTP rule to block any private IP 2020-12-05 11:32:00 +00:00
data Also generate computer models 2020-11-28 12:06:46 +00:00
shared Don't use capabilities for generic peripherals 2020-12-10 19:05:44 +00:00
ComputerCraft.java Allow $private HTTP rule to block any private IP 2020-12-05 11:32:00 +00:00
ComputerCraftAPIImpl.java Move getResourceFile to CCAPIImpl 2020-07-18 10:31:28 +01:00